1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 18:25:55 +00:00

add namespaced controls with unified naming; deprecated old-style control shortcuts

This commit is contained in:
Andrew Dolgov
2021-02-16 14:23:00 +03:00
parent cb6b3584ce
commit 26d6b84a57
11 changed files with 470 additions and 349 deletions

View File

@@ -90,12 +90,12 @@ class Pref_System extends Handler_Administrative {
<div class='pull-right'>
<?= __("Severity:") ?>
<?php print_select_hash("severity", $severity,
<?= \Controls\select_hash("severity", $severity,
[
E_USER_ERROR => __("Errors"),
E_USER_WARNING => __("Warnings"),
E_USER_NOTICE => __("Everything")
], 'dojoType="fox.form.Select" onchange="Helpers.EventLog.refresh()"') ?>
], 'onchange="Helpers.EventLog.refresh()"', "severity") ?>
</div>
</div>