mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 13:15:55 +00:00
Created hotkeys_force_top plugin
Renamed swap_jk to match new naming scheme.
This commit is contained in:
6
plugins/hotkeys_force_top/init.js
Normal file
6
plugins/hotkeys_force_top/init.js
Normal file
@@ -0,0 +1,6 @@
|
||||
require(['dojo/_base/kernel', 'dojo/ready'], function (dojo, ready) {
|
||||
ready(function () {
|
||||
Headlines.default_force_to_top = true;
|
||||
});
|
||||
});
|
||||
|
||||
24
plugins/hotkeys_force_top/init.php
Normal file
24
plugins/hotkeys_force_top/init.php
Normal file
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
class Swap_JK extends Plugin {
|
||||
class Hotkeys_Swap_JK extends Plugin {
|
||||
|
||||
private $host;
|
||||
|
||||
@@ -27,4 +27,4 @@ class Swap_JK extends Plugin {
|
||||
return 2;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user