1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-11-02 08:33:01 +00:00

Add Switcher modal (#5089)

* Alternative switcher using a parameter via tm-show-switcher

* Add CSS class for centered modals

* Changed keyboardshortcut and removed transition CSS

* Resolved wording issues
This commit is contained in:
saqimtiaz
2020-11-23 18:06:24 +01:00
committed by GitHub
parent 72b32946aa
commit aa6f152d35
10 changed files with 63 additions and 0 deletions

View File

@@ -25,6 +25,9 @@ exports.startup = function() {
$tw.rootWidget.addEventListener("tm-modal",function(event) {
$tw.modal.display(event.param,{variables: event.paramObject, event: event});
});
$tw.rootWidget.addEventListener("tm-show-switcher",function(event) {
$tw.modal.display("$:/core/ui/SwitcherModal",{variables: event.paramObject, event: event});
});
// Install the notification mechanism
$tw.notifier = new $tw.utils.Notifier($tw.wiki);
$tw.rootWidget.addEventListener("tm-notify",function(event) {