mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-12-06 08:48:05 +00:00
Rename "tw-*" messages to "tm-*"
This commit is contained in:
@@ -113,7 +113,7 @@ Modal.prototype.display = function(title,options) {
|
||||
attributes: {
|
||||
message: {
|
||||
type: "string",
|
||||
value: "tw-close-tiddler"
|
||||
value: "tm-close-tiddler"
|
||||
}
|
||||
},
|
||||
children: [{
|
||||
@@ -152,12 +152,12 @@ Modal.prototype.display = function(title,options) {
|
||||
document.body.removeChild(wrapper);
|
||||
}
|
||||
},duration);
|
||||
// Don't let anyone else handle the tw-close-tiddler message
|
||||
// Don't let anyone else handle the tm-close-tiddler message
|
||||
return false;
|
||||
};
|
||||
headerWidgetNode.addEventListener("tw-close-tiddler",closeHandler,false);
|
||||
bodyWidgetNode.addEventListener("tw-close-tiddler",closeHandler,false);
|
||||
footerWidgetNode.addEventListener("tw-close-tiddler",closeHandler,false);
|
||||
headerWidgetNode.addEventListener("tm-close-tiddler",closeHandler,false);
|
||||
bodyWidgetNode.addEventListener("tm-close-tiddler",closeHandler,false);
|
||||
footerWidgetNode.addEventListener("tm-close-tiddler",closeHandler,false);
|
||||
// Set the initial styles for the message
|
||||
$tw.utils.setStyle(modalBackdrop,[
|
||||
{opacity: "0"}
|
||||
|
||||
@@ -13,7 +13,7 @@ Module that creates a $tw.utils.Scroller object prototype that manages scrolling
|
||||
"use strict";
|
||||
|
||||
/*
|
||||
Event handler for when the `tw-scroll` event hits the document body
|
||||
Event handler for when the `tm-scroll` event hits the document body
|
||||
*/
|
||||
var PageScroller = function() {
|
||||
this.idRequestFrame = null;
|
||||
@@ -44,7 +44,7 @@ PageScroller.prototype.cancelScroll = function() {
|
||||
Handle an event
|
||||
*/
|
||||
PageScroller.prototype.handleEvent = function(event) {
|
||||
if(event.type === "tw-scroll") {
|
||||
if(event.type === "tm-scroll") {
|
||||
return this.scrollIntoView(event.target);
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user