1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 10:45:56 +00:00

uploadIconHandler -> CommonDialogs

This commit is contained in:
Andrew Dolgov
2018-12-02 20:57:51 +03:00
parent 526389b2d3
commit eeb49d375c
3 changed files with 20 additions and 22 deletions

View File

@@ -343,27 +343,6 @@ function fatalError(code, msg, ext_info) {
return s.replace(/<\/?[^>]+(>|$)/g, "");
} */
// noinspection JSUnusedGlobalSymbols
function uploadIconHandler(rc) {
switch (rc) {
case 0:
Notify.info("Upload complete.");
if (App.isPrefs()) {
Feeds.reload();
} else {
setTimeout('Feeds.reload(false, false)', 50);
}
break;
case 1:
Notify.error("Upload failed: icon is too big.");
break;
case 2:
Notify.error("Upload failed.");
break;
}
}
// noinspection JSUnusedGlobalSymbols
function label_to_feed_id(label) {
return _label_base_index - 1 - Math.abs(label);