progressbar fixes
This commit is contained in:
parent
9950945175
commit
fca95d5f99
|
@ -1674,7 +1674,9 @@ function focus_element(id) {
|
||||||
|
|
||||||
function loading_set_progress(p) {
|
function loading_set_progress(p) {
|
||||||
try {
|
try {
|
||||||
if (!Element.visible("overlay")) return;
|
if (p < last_progress_point || !Element.visible("overlay")) return;
|
||||||
|
|
||||||
|
debug("<b>loading_set_progress : " + p + " (" + last_progress_point + ")</b>");
|
||||||
|
|
||||||
var o = document.getElementById("l_progress_i");
|
var o = document.getElementById("l_progress_i");
|
||||||
|
|
||||||
|
|
|
@ -325,8 +325,6 @@ function init() {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
loading_set_progress(30);
|
|
||||||
|
|
||||||
// this whole shebang is based on http://www.birnamdesigns.com/misc/busted2.html
|
// this whole shebang is based on http://www.birnamdesigns.com/misc/busted2.html
|
||||||
|
|
||||||
if (arguments.callee.done) return;
|
if (arguments.callee.done) return;
|
||||||
|
@ -346,6 +344,8 @@ function init() {
|
||||||
|
|
||||||
var params = "&ua=" + param_escape(navigator.userAgent);
|
var params = "&ua=" + param_escape(navigator.userAgent);
|
||||||
|
|
||||||
|
loading_set_progress(30);
|
||||||
|
|
||||||
new Ajax.Request("backend.php?op=rpc&subop=sanityCheck" + params, {
|
new Ajax.Request("backend.php?op=rpc&subop=sanityCheck" + params, {
|
||||||
onComplete: function(transport) {
|
onComplete: function(transport) {
|
||||||
backend_sanity_check_callback(transport);
|
backend_sanity_check_callback(transport);
|
||||||
|
|
Loading…
Reference in New Issue