diff options
author | Andrew Dolgov <[email protected]> | 2023-04-13 20:14:34 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-04-13 20:14:34 +0300 |
commit | d8876382500419b0f364b44fa4ab63170c958724 (patch) | |
tree | 561b3e3f0056d2e1692449630e060660a4cee16b |
initial
-rw-r--r-- | .gitlab-ci.yml | 10 | ||||
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | init.js | 6 | ||||
-rw-r--r-- | init.php | 20 |
4 files changed, 37 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..8178ea1 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,10 @@ +stages: + - lint + +include: + - project: 'ci/ci-templates' + ref: master + file: .ci-lint-common.yml + +phpstan: + extends: .phpstan-tt-rss-plugin diff --git a/README.md b/README.md new file mode 100644 index 0000000..6848e21 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +Git checkout to `plugins.local/cdm_nosnap` @@ -0,0 +1,6 @@ +/* global require Headlines */ +require(['dojo/_base/kernel', 'dojo/ready'], function (dojo, ready) { + ready(function () { + Headlines.default_move_on_expand = false; + }); +}); diff --git a/init.php b/init.php new file mode 100644 index 0000000..8c82a62 --- /dev/null +++ b/init.php @@ -0,0 +1,20 @@ +<?php +class CDM_No_Move_On_Expand extends Plugin { + function about() { + return array(null, + "Prevents article top from moving when clicking in unexpanded combined mode (whew!)", + "fox"); + } + + function init($host) { + + } + + function get_js() { + return file_get_contents(__DIR__ . "/init.js"); + } + + function api_version() { + return 2; + } +} |