1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-19 16:24:51 +00:00
This commit is contained in:
Jermolene 2013-12-20 17:07:30 +00:00
parent 79046c52b4
commit e66fb948c1

View File

@ -175,7 +175,7 @@ Generate an unused title from the specified base
exports.generateNewTitle = function(baseTitle) { exports.generateNewTitle = function(baseTitle) {
var c = 0, var c = 0,
title = baseTitle; title = baseTitle;
while(this.tiddlerExists(title) { while(this.tiddlerExists(title)) {
title = baseTitle + " " + (++c); title = baseTitle + " " + (++c);
}; };
return title; return title;