Sha256: f26c2705aa4446a20519b69bdc1b21809df6621fde283d9813b48b41483bd0a8

Contents?: true

Size: 1.04 KB

Versions: 10

Compression:

Stored size: 1.04 KB

Contents

// console.log('Loading Metadata...')

Spontaneous.Services = (function($, S) {
	var dom = S.Dom;
	var instance = new JS.Singleton({
		include: S.Properties,
		loaded: function(serviceData) {
			this.set('services', serviceData);
		},
		serviceList: function() {
			return this.get("services");
		},
		open: function(service) {
			S.TopBar.showService(service);
			S.ContentArea.showService(service);
		},
		close: function() {
			S.TopBar.showNavigationView();
			S.ContentArea.hideService();
		},
		init: function(container) {
			this.iframe = dom.iframe("#services_pane", {'src':'about:blank'})
			this.iframe.hide();
			container.append(this.iframe);
			return this;
		},
		display: function(url) {
			var iframe = this.iframe;
			iframe.fadeIn(200);
			// iframe.bind('ready.services', function() {
			// 	iframe.fadeIn(200);
			// });
			iframe[0].contentWindow.location.href = url;
		},
		hide: function() {
			this.iframe.unbind('ready.services').hide();
		},
		show: function() {
			this.iframe.show();
		}
	});
	return instance;
}(jQuery, Spontaneous));

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
spontaneous-0.2.0.beta5 application/js/services.js
spontaneous-0.2.0.beta4 application/js/services.js
spontaneous-0.2.0.beta3 application/js/services.js
spontaneous-0.2.0.beta2 application/js/services.js
spontaneous-0.2.0.beta1 application/js/services.js
spontaneous-0.2.0.alpha7 application/js/services.js
spontaneous-0.2.0.alpha6 application/js/services.js
spontaneous-0.2.0.alpha5 application/js/services.js
spontaneous-0.2.0.alpha4 application/js/services.js
spontaneous-0.2.0.alpha3 application/js/services.js