0

fixed hiding JSObserver info box when unused

This commit is contained in:
Aaron Griffith
2013-08-21 10:59:53 -04:00
parent 3ef5382be8
commit 6b76e9c2fa

View File

@@ -142,25 +142,25 @@ overviewer.views.ProgressView = Backbone.View.extend({
this.el.id = 'progressDiv';
this.el.innerHTML = 'Current Render Progress';
overviewer.map.controls[google.maps.ControlPosition.BOTTOM_RIGHT].push(this.el);
this.el.hidden = true;
$(this.el).hide();
$.ajaxSetup({cache: false});
},
updateProgress: function() {
e = this;
$.getJSON('progress.json', null, function(d){
if (!(d == null||d=='')) {
e.el.hidden = false;
$(e.el).show();
e.el.innerHTML = d['message'];
if (d.update > 0) {
setTimeout("e.updateProgress()", d.update);
} else {
setTimeout("e.updateProgress()", 60000);
e.el.innerHTML="Hidden - d.update < 0";
e.el.hidden = true;
$(e.el).hide();
}
} else {
e.el.innerHTML="Hidden - !!d==false";
e.el.hidden = true;
$(e.el).hide();
}
});
}