1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +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:
Jermolene 2017-02-08 20:04:36 +00:00
parent f4a015f120
commit 9bc523fdef

View File

@ -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)
}
}