mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-14 00:05:57 +00:00
experimentally rebase labels; make base index configurable
This commit is contained in:
@@ -2,6 +2,7 @@ var notify_silent = false;
|
||||
var loading_progress = 0;
|
||||
var sanity_check_done = false;
|
||||
var init_params = {};
|
||||
var _label_base_index = -1024;
|
||||
|
||||
Ajax.Base.prototype.initialize = Ajax.Base.prototype.initialize.wrap(
|
||||
function (callOriginal, options) {
|
||||
@@ -1986,3 +1987,13 @@ function htmlspecialchars_decode (string, quote_style) {
|
||||
|
||||
return string;
|
||||
}
|
||||
|
||||
|
||||
function label_to_feed_id(label) {
|
||||
return _label_base_index - 1 - Math.abs(label);
|
||||
}
|
||||
|
||||
function feed_to_label_id(feed) {
|
||||
return _label_base_index - 1 + Math.abs(feed);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user