From f8d96543de36dd2d9a223fd017b6c5f671ff3e6a Mon Sep 17 00:00:00 2001 From: Nathan Warner Date: Sat, 30 May 2020 22:45:41 -0600 Subject: [PATCH] Created hotkeys_force_top plugin Renamed swap_jk to match new naming scheme. --- plugins/hotkeys_force_top/init.js | 6 +++++ plugins/hotkeys_force_top/init.php | 24 +++++++++++++++++++ plugins/{swap_jk => hotkeys_swap_jk}/init.php | 4 ++-- 3 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 plugins/hotkeys_force_top/init.js create mode 100644 plugins/hotkeys_force_top/init.php rename plugins/{swap_jk => hotkeys_swap_jk}/init.php (90%) diff --git a/plugins/hotkeys_force_top/init.js b/plugins/hotkeys_force_top/init.js new file mode 100644 index 000000000..8d6280fc9 --- /dev/null +++ b/plugins/hotkeys_force_top/init.js @@ -0,0 +1,6 @@ +require(['dojo/_base/kernel', 'dojo/ready'], function (dojo, ready) { + ready(function () { + Headlines.default_force_to_top = true; + }); +}); + diff --git a/plugins/hotkeys_force_top/init.php b/plugins/hotkeys_force_top/init.php new file mode 100644 index 000000000..faddc9148 --- /dev/null +++ b/plugins/hotkeys_force_top/init.php @@ -0,0 +1,24 @@ +host = $host; + + } + + function get_js() { + return file_get_contents(__DIR__ . "/init.js"); + } + + function api_version() { + return 2; + } + +} diff --git a/plugins/swap_jk/init.php b/plugins/hotkeys_swap_jk/init.php similarity index 90% rename from plugins/swap_jk/init.php rename to plugins/hotkeys_swap_jk/init.php index d85149ef3..b1e3dbe04 100644 --- a/plugins/swap_jk/init.php +++ b/plugins/hotkeys_swap_jk/init.php @@ -1,5 +1,5 @@