summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2008-05-19 08:37:44 +0100
committerAndrew Dolgov <[email protected]>2008-05-19 08:37:44 +0100
commit730dbf19107d42e1a6568ac7057375b9a2e58e9e (patch)
treef924daca27e77bcaf79ba1052ed3b5cda0411584 /functions.js
parent36cebe0f8da738414e0256f433e9422f25b79605 (diff)
loading progress bar for main window
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/functions.js b/functions.js
index f716f350e..c37a7812c 100644
--- a/functions.js
+++ b/functions.js
@@ -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);
+ }
+}