Sha256: a7d6219b4df8babe834a85281ccced804164b08073f9553c2eeb8e9bac4029fd

Contents?: true

Size: 1.35 KB

Versions: 13

Compression:

Stored size: 1.35 KB

Contents

// console.log("Loading StatusBar...");


Spontaneous.StatusBar = (function($, S) {
	var dom = S.Dom;

	var StatusBar = {
		showing: false,
		init: function() {
			this.container = dom.div('#status-bar').hide();
			S.UploadManager.init(this);
			// window.setTimeout(function() {this.hide();}.bind(this), 1000);
			return this.container;
		},
		hide: function() {
			if (!this.showing) { return; }
			this.showing = false;
			var duration = 200;
			window.setTimeout(function() {
				// S.ContentArea.wrap.animate({'bottom': 0}, duration);
				// S.Dialogue.overlay().animate({'bottom': 0}, duration);
				this.container.animate({'height': 0}, duration, function() { /* this.container.hide() */ }.bind(this));
			}.bind(this), 500);
		},
		show: function() {
			if (this.showing) { return; }
			this.showing = true;
			var duration = 200, height = 32;
			// S.ContentArea.wrap.animate({'bottom': height}, duration);
			// S.Dialogue.overlay().animate({'bottom': height}, duration);
			this.container.css('height', 0+'px');
			this.container.show();
			this.container.animate({'height': height}, duration);
		},
		progress_container: function() {
			if (!this._progress_container) {
				var c = dom.div('#progress-container');
				this.container.append(c);
				this._progress_container = c;
			}
			return this._progress_container;
		}
	};
	return StatusBar;
})(jQuery, Spontaneous);


Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
spontaneous-0.2.0.beta5 application/js/status_bar.js
spontaneous-0.2.0.beta4 application/js/status_bar.js
spontaneous-0.2.0.beta3 application/js/status_bar.js
spontaneous-0.2.0.beta2 application/js/status_bar.js
spontaneous-0.2.0.beta1 application/js/status_bar.js
spontaneous-0.2.0.alpha7 application/js/status_bar.js
spontaneous-0.2.0.alpha6 application/js/status_bar.js
spontaneous-0.2.0.alpha5 application/js/status_bar.js
spontaneous-0.2.0.alpha4 application/js/status_bar.js
spontaneous-0.2.0.alpha3 application/js/status_bar.js
spontaneous-0.2.0.alpha2 application/js/status_bar.js
spontaneous-0.2.0.alpha1 application/js/status_bar.js
spontaneous-0.1.0.alpha1 application/js/status_bar.js