mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-10-24 16:44:28 +00:00
Fix bug in renameTiddler
This operation isn’t used by the core, but is used by the TextSlicer plugin
This commit is contained in:
1 parent
f4a015f120
commit
9bc523fdef
1 file changed
+1
-2
@@ -16,7 +16,6 @@ Bulk tiddler operations such as rename.
|
||||
Rename a tiddler, and relink any tags or lists that reference it.
|
||||
*/
|
||||
function renameTiddler(fromTitle,toTitle,options) {
|
||||
var self = this;
|
||||
fromTitle = (fromTitle || "").trim();
|
||||
toTitle = (toTitle || "").trim();
|
||||
options = options || {};
|
||||
@@ -26,7 +25,7 @@ function renameTiddler(fromTitle,toTitle,options) {
|
||||
this.addTiddler(new $tw.Tiddler(tiddler,{title: toTitle},this.getModificationFields()));
|
||||
this.deleteTiddler(fromTitle);
|
||||
// Rename any tags or lists that reference it
|
||||
relinkTiddler(fromTitle,toTitle,options)
|
||||
this.relinkTiddler(fromTitle,toTitle,options)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user