summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-03-23 11:51:17 +0300
committerAndrew Dolgov <[email protected]>2021-03-23 11:51:17 +0300
commite3c51b0e6c2b9d80daaa76607884cc9340834bd4 (patch)
tree01dde001dcd3984daa19c1c2d07266971a5483c6 /js
parentc34a4c85bde242c991baf1f383694e9a4fa82940 (diff)
Revert "clip max displayed counter value to 9999 because of container node width"
This reverts commit c34a4c85bde242c991baf1f383694e9a4fa82940.
Diffstat (limited to 'js')
-rw-r--r--js/Feeds.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/js/Feeds.js b/js/Feeds.js
index a65e8d9c6..818973542 100644
--- a/js/Feeds.js
+++ b/js/Feeds.js
@@ -3,7 +3,6 @@
/* global __, App, Headlines, xhr, dojo, dijit, fox, PluginHost, Notify, fox */
const Feeds = {
- _max_counter_value: 9999,
_default_feed_id: -3,
counters_last_request: 0,
_active_feed_id: undefined,
@@ -70,7 +69,7 @@ const Feeds = {
const id = elems[l].id;
const kind = elems[l].kind;
- const ctr = Math.min(this._max_counter_value, parseInt(elems[l].counter));
+ const ctr = parseInt(elems[l].counter);
const error = elems[l].error;
const has_img = elems[l].has_img;
const updated = elems[l].updated;
@@ -91,10 +90,8 @@ const Feeds = {
}*/
this.setUnread(id, (kind == "cat"), ctr);
- this.setValue(id, (kind == "cat"), 'auxcounter',
- Math.min(this._max_counter_value, parseInt(elems[l].auxcounter)));
- this.setValue(id, (kind == "cat"), 'markedcounter',
- Math.min(this._max_counter_value, parseInt(elems[l].markedcounter)));
+ this.setValue(id, (kind == "cat"), 'auxcounter', parseInt(elems[l].auxcounter));
+ this.setValue(id, (kind == "cat"), 'markedcounter', parseInt(elems[l].markedcounter));
if (kind != "cat") {
this.setValue(id, false, 'error', error);