1
0
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:
Andrew Dolgov
2013-03-27 09:40:07 +04:00
parent 260501fddd
commit f822a8e56c
8 changed files with 45 additions and 23 deletions

View File

@@ -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);
}