diff options
author | fox <[email protected]> | 2020-05-31 08:09:11 +0000 |
---|---|---|
committer | Gogs <[email protected]> | 2020-05-31 08:09:11 +0000 |
commit | 851de8151753b176acd0450ad64fe899bc23a049 (patch) | |
tree | d39e54107727f95d75fe92708806cf1d6dd6b02b /plugins/hotkeys_force_top | |
parent | b39e615683dae2d9b08939b7fb131cb8607c8415 (diff) | |
parent | f8d96543de36dd2d9a223fd017b6c5f671ff3e6a (diff) |
Merge branch 'hotkeys_force_top' of itsamenathan/tt-rss into master
Diffstat (limited to 'plugins/hotkeys_force_top')
-rw-r--r-- | plugins/hotkeys_force_top/init.js | 6 | ||||
-rw-r--r-- | plugins/hotkeys_force_top/init.php | 24 |
2 files changed, 30 insertions, 0 deletions
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 @@ +<?php +class Hotkeys_Force_Top extends Plugin { + private $host; + + function about() { + return array(1.0, + "Force open article to the top", + "itsamenathan"); + } + + function init($host) { + $this->host = $host; + + } + + function get_js() { + return file_get_contents(__DIR__ . "/init.js"); + } + + function api_version() { + return 2; + } + +} |