1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 13:05:55 +00:00

loading progress bar for main window

This commit is contained in:
Andrew Dolgov
2008-05-19 08:37:44 +01:00
parent 36cebe0f8d
commit 730dbf1910
6 changed files with 68 additions and 5 deletions

View File

@@ -1,6 +1,7 @@
var hotkeys_enabled = true;
var debug_mode_enabled = false;
var xmlhttp_rpc = Ajax.getTransport();
var notify_silent = false;
/* add method to remove element from array */
@@ -134,8 +135,17 @@ function hide_notify() {
}
}
function notify_silent_next() {
notify_silent = true;
}
function notify_real(msg, no_hide, n_type) {
if (notify_silent) {
notify_silent = false;
return;
}
var n = document.getElementById("notify");
var nb = document.getElementById("notify_body");
@@ -1661,3 +1671,12 @@ function focus_element(id) {
return false;
}
function loading_set_progress(v) {
try {
var o = document.getElementById("l_progress_i");
o.style.width = (v*2) + "px";
} catch (e) {
exception_error("loading_set_progress", e);
}
}