mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-09-20 08:40:42 +00:00
Move rename tiddler handling into navigator widget
For consistency with the other tiddler manipulation primitives.
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
/*\
|
||||
title: $:/core/modules/startup/bulkops.js
|
||||
type: application/javascript
|
||||
module-type: startup
|
||||
|
||||
Support for bulk tiddler operations
|
||||
|
||||
\*/
|
||||
(function(){
|
||||
|
||||
/*jslint node: true, browser: true */
|
||||
/*global $tw: false */
|
||||
"use strict";
|
||||
|
||||
// Export name and synchronous status
|
||||
exports.name = "bulkops";
|
||||
exports.platforms = ["browser"];
|
||||
exports.after = ["startup"];
|
||||
exports.synchronous = true;
|
||||
|
||||
exports.startup = function() {
|
||||
$tw.rootWidget.addEventListener("tm-rename-tiddler",function(event) {
|
||||
var paramObject = event.paramObject || {};
|
||||
$tw.wiki.renameTiddler(paramObject.from,paramObject.to);
|
||||
});
|
||||
};
|
||||
|
||||
})();
|
||||
Reference in New Issue
Block a user