Generate new tiddler titles that aren't already subject of a draft

This commit is contained in:
Jermolene
2014-10-10 20:58:56 +01:00
parent 644ced6d4e
commit 06f9ed8bad
+1 -1
View File
@@ -177,7 +177,7 @@ exports.generateNewTitle = function(baseTitle,options) {
options = options || {};
var c = 0,
title = baseTitle;
while(this.tiddlerExists(title) || this.isShadowTiddler(title)) {
while(this.tiddlerExists(title) || this.isShadowTiddler(title) || this.findDraft(title)) {
title = baseTitle +
(options.prefix || " ") +
(++c);