mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-16 23:04:50 +00:00
72ed4b2673
The plan is to expose the functionality in other places, too - for example, the edit template and the tag manager
29 lines
604 B
JavaScript
29 lines
604 B
JavaScript
/*\
|
|
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);
|
|
});
|
|
};
|
|
|
|
})();
|