]> git.wh0rd.org - tt-rss.git/blobdiff - js/prefs.js
move to let/const syntax in custom dojo modules
[tt-rss.git] / js / prefs.js
index e67d80df45bc5166abf7de4b3f581642378350b4..a1f5423e7286231ac02bb8f7b3d6d39d833f5761 100755 (executable)
@@ -1,9 +1,9 @@
-var init_params = new Array();
+/* global dijit, __ */
 
-var hotkey_prefix = false;
-var hotkey_prefix_pressed = false;
+let hotkey_prefix = false;
+let hotkey_prefix_pressed = false;
 
-var seq = "";
+let seq = "";
 
 function notify_callback2(transport, sticky) {
        notify_info(transport.responseText, sticky);
@@ -91,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",
@@ -126,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",
@@ -474,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",
@@ -575,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",
@@ -1042,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",
@@ -1156,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",
@@ -1456,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",