mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 10:45:56 +00:00
minor cleanup related to toolbar-main (use dijit methods, etc)
This commit is contained in:
18
js/App.js
18
js/App.js
@@ -777,13 +777,10 @@ const App = {
|
||||
}
|
||||
});
|
||||
|
||||
const toolbar = document.forms["toolbar-main"];
|
||||
|
||||
dijit.getEnclosingWidget(toolbar.view_mode).attr('value',
|
||||
this.getInitParam("default_view_mode"));
|
||||
|
||||
dijit.getEnclosingWidget(toolbar.order_by).attr('value',
|
||||
this.getInitParam("default_view_order_by"));
|
||||
dijit.byId('toolbar-main').setValues({
|
||||
view_mode: this.getInitParam("default_view_mode"),
|
||||
order_by: this.getInitParam("default_view_order_by")
|
||||
});
|
||||
|
||||
this.setLoadingProgress(50);
|
||||
|
||||
@@ -850,13 +847,6 @@ const App = {
|
||||
|
||||
document.title = tmp;
|
||||
},
|
||||
onViewModeChanged: function() {
|
||||
const view_mode = document.forms["toolbar-main"].view_mode.value;
|
||||
|
||||
App.findAll("body")[0].setAttribute("view-mode", view_mode);
|
||||
|
||||
return Feeds.reloadCurrent('');
|
||||
},
|
||||
hotkeyHandler: function(event) {
|
||||
if (event.target.nodeName == "INPUT" || event.target.nodeName == "TEXTAREA") return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user