mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-06-25 23:03:15 +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:
parent
f4a015f120
commit
9bc523fdef
|
@ -16,7 +16,6 @@ Bulk tiddler operations such as rename.
|
||||||
Rename a tiddler, and relink any tags or lists that reference it.
|
Rename a tiddler, and relink any tags or lists that reference it.
|
||||||
*/
|
*/
|
||||||
function renameTiddler(fromTitle,toTitle,options) {
|
function renameTiddler(fromTitle,toTitle,options) {
|
||||||
var self = this;
|
|
||||||
fromTitle = (fromTitle || "").trim();
|
fromTitle = (fromTitle || "").trim();
|
||||||
toTitle = (toTitle || "").trim();
|
toTitle = (toTitle || "").trim();
|
||||||
options = options || {};
|
options = options || {};
|
||||||
|
@ -26,7 +25,7 @@ function renameTiddler(fromTitle,toTitle,options) {
|
||||||
this.addTiddler(new $tw.Tiddler(tiddler,{title: toTitle},this.getModificationFields()));
|
this.addTiddler(new $tw.Tiddler(tiddler,{title: toTitle},this.getModificationFields()));
|
||||||
this.deleteTiddler(fromTitle);
|
this.deleteTiddler(fromTitle);
|
||||||
// Rename any tags or lists that reference it
|
// Rename any tags or lists that reference it
|
||||||
relinkTiddler(fromTitle,toTitle,options)
|
this.relinkTiddler(fromTitle,toTitle,options)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user