mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 15:25:59 +00:00
prefs: move other tree-related functions to respective trees
This commit is contained in:
@@ -1255,7 +1255,7 @@ class Pref_Feeds extends Handler_Protected {
|
||||
<script type=\"dojo/method\" event=\"onLoad\" args=\"item\">
|
||||
Element.hide(\"feedlistLoading\");
|
||||
|
||||
checkInactiveFeeds();
|
||||
dijit.byId('feedTree').checkInactiveFeeds();
|
||||
</script>
|
||||
</div>";
|
||||
|
||||
|
||||
@@ -800,17 +800,17 @@ class Pref_Filters extends Handler_Protected {
|
||||
print "<button dojoType=\"dijit.form.Button\" onclick=\"return Filters.quickAddFilter()\">".
|
||||
__('Create filter')."</button> ";
|
||||
|
||||
print "<button dojoType=\"dijit.form.Button\" onclick=\"return joinSelectedFilters()\">".
|
||||
print "<button dojoType=\"dijit.form.Button\" onclick=\"return dijit.byId('filterTree').joinSelectedFilters()\">".
|
||||
__('Combine')."</button> ";
|
||||
|
||||
print "<button dojoType=\"dijit.form.Button\" onclick=\"return editSelectedFilter()\">".
|
||||
print "<button dojoType=\"dijit.form.Button\" onclick=\"return dijit.byId('filterTree').editSelectedFilter()\">".
|
||||
__('Edit')."</button> ";
|
||||
|
||||
print "<button dojoType=\"dijit.form.Button\" onclick=\"return resetFilterOrder()\">".
|
||||
print "<button dojoType=\"dijit.form.Button\" onclick=\"return dijit.byId('filterTree').resetFilterOrder()\">".
|
||||
__('Reset sort order')."</button> ";
|
||||
|
||||
|
||||
print "<button dojoType=\"dijit.form.Button\" onclick=\"return removeSelectedFilters()\">".
|
||||
print "<button dojoType=\"dijit.form.Button\" onclick=\"return dijit.byId('filterTree').removeSelectedFilters()\">".
|
||||
__('Remove')."</button> ";
|
||||
|
||||
print "</div>"; # toolbar
|
||||
@@ -840,7 +840,7 @@ class Pref_Filters extends Handler_Protected {
|
||||
var bare_id = id.substr(id.indexOf(':')+1);
|
||||
|
||||
if (id.match('FILTER:')) {
|
||||
editFilter(bare_id);
|
||||
dijit.byId('filterTree').editFilter(bare_id);
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -310,7 +310,7 @@ class Pref_Labels extends Handler_Protected {
|
||||
var bare_id = id.substr(id.indexOf(':')+1);
|
||||
|
||||
if (id.match('LABEL:')) {
|
||||
editLabel(bare_id);
|
||||
dijit.byId('labelTree').editLabel(bare_id);
|
||||
}
|
||||
</script>
|
||||
</div>";
|
||||
|
||||
@@ -436,7 +436,7 @@ class Pref_Prefs extends Handler_Protected {
|
||||
onComplete: function(transport) {
|
||||
var msg = transport.responseText;
|
||||
if (quit) {
|
||||
gotoMain();
|
||||
document.location.href = 'index.php';
|
||||
} else {
|
||||
if (msg == 'PREFS_NEED_RELOAD') {
|
||||
window.location.reload();
|
||||
|
||||
Reference in New Issue
Block a user