diff options
author | Andrew Dolgov <[email protected]> | 2020-02-22 16:44:31 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-02-22 16:44:31 +0300 |
commit | 788ea95fbda1939d49472bdf76ccea5f0d193c07 (patch) | |
tree | 7e428b19f409ab1131a806f68e21fc426855449f /js/common.js | |
parent | 4ab3854aede3882779138d91594b588e1a38c70e (diff) |
feed tree: do not mark Labels as Special
Diffstat (limited to 'js/common.js')
-rwxr-xr-x | js/common.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/common.js b/js/common.js index e93087eb4..69b528a1c 100755 --- a/js/common.js +++ b/js/common.js @@ -1,7 +1,7 @@ 'use strict' /* global dijit, __ */ -let _label_base_index = -1024; +let LABEL_BASE_INDEX = -1024; /* not const because it's assigned at least once (by backend) */ let loading_progress = 0; /* error reporting shim */ @@ -252,12 +252,12 @@ function displayIfChecked(checkbox, elemId) { // noinspection JSUnusedGlobalSymbols function label_to_feed_id(label) { - return _label_base_index - 1 - Math.abs(label); + return LABEL_BASE_INDEX - 1 - Math.abs(label); } // noinspection JSUnusedGlobalSymbols function feed_to_label_id(feed) { - return _label_base_index - 1 + Math.abs(feed); + return LABEL_BASE_INDEX - 1 + Math.abs(feed); } // http://stackoverflow.com/questions/6251937/how-to-get-selecteduser-highlighted-text-in-contenteditable-element-and-replac @@ -313,4 +313,4 @@ function escapeHtml(text) { }; return text.replace(/[&<>"']/g, function(m) { return map[m]; }); -}
\ No newline at end of file +} |