mirror of
				https://github.com/Jermolene/TiddlyWiki5
				synced 2025-10-31 15:42:59 +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:
		| @@ -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) | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jermolene
					Jermolene