summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-03-05 10:25:32 +0300
committerAndrew Dolgov <[email protected]>2021-03-05 10:25:32 +0300
commit98c75a9e433d7994548071048318cae43e2c0236 (patch)
tree77aa70862710b0c5967bfa233c5d901f5b98a467 /classes
parentb649d2240fed474f797e38cdf3111d764e6f15e2 (diff)
don't check for plugin updates automatically on pane open
Diffstat (limited to 'classes')
-rw-r--r--classes/pref/prefs.php24
1 files changed, 13 insertions, 11 deletions
diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php
index b15b403e8..c94e15cfc 100644
--- a/classes/pref/prefs.php
+++ b/classes/pref/prefs.php
@@ -938,12 +938,6 @@ class Pref_Prefs extends Handler_Protected {
}
</script>
- <?php if (Config::get(Config::CHECK_FOR_UPDATES) && Config::get(Config::CHECK_FOR_PLUGIN_UPDATES) && $_SESSION["access_level"] >= 10) { ?>
- <script type="dojo/method" event="onShow" args="evt">
- Helpers.Plugins.checkForUpdate();
- </script>
- <?php } ?>
-
<?= \Controls\hidden_tag("op", "pref-prefs") ?>
<?= \Controls\hidden_tag("method", "setplugins") ?>
@@ -987,13 +981,21 @@ class Pref_Prefs extends Handler_Protected {
<i class='material-icons'>help</i> <?= __("More info...") ?>
</button>
<button dojoType='dijit.form.Button' class='alt-primary' type='submit'>
- <?= __("Enable selected plugins") ?>
+ <?= __("Enable selected") ?>
</button>
<?php if ($_SESSION["access_level"] >= 10) { ?>
- <button class="update-all-plugins-btn alt-warning" style="display : none" dojoType='dijit.form.Button' onclick="Helpers.Plugins.update()">
- <?= \Controls\icon("update") ?>
- <?= __("Update local plugins") ?>
- </button>
+ <?php if (Config::get(Config::CHECK_FOR_UPDATES) && Config::get(Config::CHECK_FOR_PLUGIN_UPDATES)) { ?>
+
+ <button dojoType='dijit.form.Button' onclick="Helpers.Plugins.checkForUpdate()">
+ <?= \Controls\icon("update") ?>
+ <?= __("Check for updates") ?>
+ </button>
+
+ <button class="update-all-plugins-btn alt-warning" style="display : none" dojoType='dijit.form.Button' onclick="Helpers.Plugins.update()">
+ <?= \Controls\icon("update") ?>
+ <?= __("Update plugins") ?>
+ </button>
+ <?php } ?>
<?php if (Config::get(Config::ENABLE_PLUGIN_INSTALLER)) { ?>
<button dojoType='dijit.form.Button' onclick="Helpers.Plugins.install()">