mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 15:25:59 +00:00
prefs: move more global functions into matching classes
This commit is contained in:
@@ -1156,7 +1156,7 @@ class Pref_Feeds extends Handler_Protected {
|
||||
$inactive_button = "<button dojoType=\"dijit.form.Button\"
|
||||
id=\"pref_feeds_inactive_btn\"
|
||||
style=\"display : none\"
|
||||
onclick=\"showInactiveFeeds()\">" .
|
||||
onclick=\"dijit.byId('feedTree').showInactiveFeeds()\">" .
|
||||
__("Inactive feeds") . "</button>";
|
||||
|
||||
$feed_search = clean($_REQUEST["search"]);
|
||||
@@ -1249,7 +1249,7 @@ class Pref_Feeds extends Handler_Protected {
|
||||
if (id.match('FEED:')) {
|
||||
CommonDialogs.editFeed(bare_id);
|
||||
} else if (id.match('CAT:')) {
|
||||
editCat(bare_id, item);
|
||||
dijit.byId('feedTree').editCategory(bare_id, item);
|
||||
}
|
||||
</script>
|
||||
<script type=\"dojo/method\" event=\"onLoad\" args=\"item\">
|
||||
|
||||
@@ -542,7 +542,7 @@ class Pref_Prefs extends Handler_Protected {
|
||||
} else if ($pref_name == "USER_STYLESHEET") {
|
||||
|
||||
print "<button dojoType=\"dijit.form.Button\"
|
||||
onclick=\"customizeCSS()\">" . __('Customize') . "</button>";
|
||||
onclick=\"Prefs.customizeCSS()\">" . __('Customize') . "</button>";
|
||||
|
||||
} else if ($pref_name == "USER_CSS_THEME") {
|
||||
|
||||
@@ -608,11 +608,11 @@ class Pref_Prefs extends Handler_Protected {
|
||||
print "<br/>";
|
||||
|
||||
print " <button dojoType=\"dijit.form.Button\" disabled=\"$has_serial\"
|
||||
onclick=\"insertSSLserial('$cert_serial')\">" .
|
||||
onclick=\"dijit.byId('SSL_CERT_SERIAL').attr('value', '$cert_serial')\">" .
|
||||
__('Register') . "</button>";
|
||||
|
||||
print " <button dojoType=\"dijit.form.Button\"
|
||||
onclick=\"insertSSLserial('')\">" .
|
||||
onclick=\"dijit.byId('SSL_CERT_SERIAL').attr('value', '')\">" .
|
||||
__('Clear') . "</button>";
|
||||
|
||||
} else if ($pref_name == 'DIGEST_PREFERRED_TIME') {
|
||||
@@ -659,10 +659,10 @@ class Pref_Prefs extends Handler_Protected {
|
||||
</div>
|
||||
</div>";
|
||||
|
||||
print "<button dojoType=\"dijit.form.Button\" onclick=\"return editProfiles()\">".
|
||||
print "<button dojoType=\"dijit.form.Button\" onclick=\"return Prefs.editProfiles()\">".
|
||||
__('Manage profiles')."</button> ";
|
||||
|
||||
print "<button dojoType=\"dijit.form.Button\" class=\"btn-danger\" onclick=\"return validatePrefsReset()\">".
|
||||
print "<button dojoType=\"dijit.form.Button\" class=\"btn-danger\" onclick=\"return Prefs.confirmReset()\">".
|
||||
__('Reset to defaults')."</button>";
|
||||
|
||||
print " ";
|
||||
@@ -756,7 +756,7 @@ class Pref_Prefs extends Handler_Protected {
|
||||
|
||||
if (count($tmppluginhost->get_all($plugin)) > 0) {
|
||||
if (in_array($name, $system_enabled)) {
|
||||
print "<td><a href='#' onclick=\"clearPluginData('$name')\"
|
||||
print "<td><a href='#' onclick=\"Prefs.clearPluginData('$name')\"
|
||||
class='visibleLink'>".__("Clear data")."</a></td>";
|
||||
}
|
||||
}
|
||||
@@ -816,7 +816,7 @@ class Pref_Prefs extends Handler_Protected {
|
||||
|
||||
if (count($tmppluginhost->get_all($plugin)) > 0) {
|
||||
if (in_array($name, $system_enabled) || in_array($name, $user_enabled)) {
|
||||
print "<td><a href='#' onclick=\"clearPluginData('$name')\" class='visibleLink'>".__("Clear data")."</a></td>";
|
||||
print "<td><a href='#' onclick=\"Prefs.clearPluginData('$name')\" class='visibleLink'>".__("Clear data")."</a></td>";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ class Pref_System extends Handler_Protected {
|
||||
function index() {
|
||||
|
||||
print "<div dojoType=\"dijit.layout.AccordionContainer\" region=\"center\">";
|
||||
print "<div dojoType=\"dijit.layout.AccordionPane\" title=\"".__('Error Log')."\">";
|
||||
print "<div dojoType=\"dijit.layout.AccordionPane\" title=\"".__('Event Log')."\">";
|
||||
|
||||
if (LOG_DESTINATION == "sql") {
|
||||
|
||||
@@ -40,7 +40,7 @@ class Pref_System extends Handler_Protected {
|
||||
onclick=\"updateSystemList()\">".__('Refresh')."</button> ";
|
||||
|
||||
print " <button dojoType=\"dijit.form.Button\"
|
||||
onclick=\"clearSqlLog()\">".__('Clear log')."</button> ";
|
||||
class=\"btn-danger\" onclick=\"Prefs.clearEventLog()\">".__('Clear')."</button> ";
|
||||
|
||||
print "<p><table width=\"100%\" cellspacing=\"10\" class=\"prefErrorLog\">";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user