summaryrefslogtreecommitdiff
path: root/js/FeedTree.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-06-05 07:44:57 +0300
committerAndrew Dolgov <[email protected]>2020-06-05 07:44:57 +0300
commitd01ad09800b67d2c83e2707188c8e5c58991db1e (patch)
tree8f3ab62784ae0f520c49c504720b24f406678ae7 /js/FeedTree.js
parent88027d7a3913872c16f42cb9d9d713aa994eb034 (diff)
eslint-related fixes; move a few things from global context to App
Diffstat (limited to 'js/FeedTree.js')
-rwxr-xr-xjs/FeedTree.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/FeedTree.js b/js/FeedTree.js
index 4e8f5930e..ae39728bb 100755
--- a/js/FeedTree.js
+++ b/js/FeedTree.js
@@ -1,4 +1,4 @@
-/* global dojo, dijit, define, App, Feeds, CommonDialogs, LABEL_BASE_INDEX */
+/* global dojo, dijit, define, App, Feeds, CommonDialogs */
define(["dojo/_base/declare", "dojo/dom-construct", "dijit/Tree", "dijit/Menu"], function (declare, domConstruct) {
@@ -34,7 +34,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "dijit/Tree", "dijit/Menu"],
const id = args.item.id[0];
const bare_id = parseInt(id.substr(id.indexOf(':')+1));
- if (bare_id < LABEL_BASE_INDEX) {
+ if (bare_id < App.LABEL_BASE_INDEX) {
const label = dojo.create('i', { className: "material-icons icon icon-label", innerHTML: "label" });
//const fg_color = args.item.fg_color[0];
@@ -164,9 +164,9 @@ define(["dojo/_base/declare", "dojo/dom-construct", "dijit/Tree", "dijit/Menu"],
if (item.auxcounter > 0) rc += " Has_Aux";
if (item.markedcounter > 0) rc += " Has_Marked";
if (item.updates_disabled > 0) rc += " UpdatesDisabled";
- if (item.bare_id >= LABEL_BASE_INDEX && item.bare_id < 0 && !is_cat || item.bare_id == 0 && !is_cat) rc += " Special";
+ if (item.bare_id >= App.LABEL_BASE_INDEX && item.bare_id < 0 && !is_cat || item.bare_id == 0 && !is_cat) rc += " Special";
if (item.bare_id == -1 && is_cat) rc += " AlwaysVisible";
- if (item.bare_id < LABEL_BASE_INDEX) rc += " Label";
+ if (item.bare_id < App.LABEL_BASE_INDEX) rc += " Label";
return rc;
},