summaryrefslogtreecommitdiff
path: root/js/prefs.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-11-29 21:13:41 +0300
committerAndrew Dolgov <[email protected]>2018-11-29 21:13:41 +0300
commit9dc5524df1a91252eee3247d2b8b2549df79150f (patch)
treecc447f6e99f7980851da5208c93606d85977735c /js/prefs.js
parent1b91bb45646899179a8a08ea7af22dab256246c7 (diff)
set dialogs to const
Diffstat (limited to 'js/prefs.js')
-rwxr-xr-xjs/prefs.js16
1 files changed, 7 insertions, 9 deletions
diff --git a/js/prefs.js b/js/prefs.js
index 792ad6b3d..a1f5423e7 100755
--- a/js/prefs.js
+++ b/js/prefs.js
@@ -1,7 +1,5 @@
/* global dijit, __ */
-let init_params = [];
-
let hotkey_prefix = false;
let hotkey_prefix_pressed = false;
@@ -93,7 +91,7 @@ function editUser(id) {
if (dijit.byId("userEditDlg"))
dijit.byId("userEditDlg").destroyRecursive();
- var dialog = new dijit.Dialog({
+ const dialog = new dijit.Dialog({
id: "userEditDlg",
title: __("User Editor"),
style: "width: 600px",
@@ -128,7 +126,7 @@ function editFilter(id) {
if (dijit.byId("filterEditDlg"))
dijit.byId("filterEditDlg").destroyRecursive();
- var dialog = new dijit.Dialog({
+ const dialog = new dijit.Dialog({
id: "filterEditDlg",
title: __("Edit Filter"),
style: "width: 600px",
@@ -476,7 +474,7 @@ function selectedUserDetails() {
if (dijit.byId("userDetailsDlg"))
dijit.byId("userDetailsDlg").destroyRecursive();
- var dialog = new dijit.Dialog({
+ const dialog = new dijit.Dialog({
id: "userDetailsDlg",
title: __("User details"),
style: "width: 600px",
@@ -577,7 +575,7 @@ function editSelectedFeeds() {
notify("");
- var dialog = new dijit.Dialog({
+ const dialog = new dijit.Dialog({
id: "feedEditDlg",
title: __("Edit Multiple Feeds"),
style: "width: 600px",
@@ -1044,7 +1042,7 @@ function showInactiveFeeds() {
if (dijit.byId("inactiveFeedsDlg"))
dijit.byId("inactiveFeedsDlg").destroyRecursive();
- var dialog = new dijit.Dialog({
+ const dialog = new dijit.Dialog({
id: "inactiveFeedsDlg",
title: __("Feeds without recent updates"),
style: "width: 600px",
@@ -1158,7 +1156,7 @@ function editProfiles() {
const query = "backend.php?op=pref-prefs&method=editPrefProfiles";
- var dialog = new dijit.Dialog({
+ const dialog = new dijit.Dialog({
id: "profileEditDlg",
title: __("Settings Profiles"),
style: "width: 600px",
@@ -1458,7 +1456,7 @@ function batchSubscribe() {
if (dijit.byId("batchSubDlg")) dijit.byId("batchSubDlg").destroyRecursive();
if (dijit.byId("feedAddDlg")) dijit.byId("feedAddDlg").destroyRecursive();
- var dialog = new dijit.Dialog({
+ const dialog = new dijit.Dialog({
id: "batchSubDlg",
title: __("Batch subscribe"),
style: "width: 600px",