Sha256: ecfa62c1067e56b086f0b912b620ed66a7373669ad187d85ac88e2ee5c7d6eaf

Contents?: true

Size: 1.05 KB

Versions: 5

Compression:

Stored size: 1.05 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.velocity('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

5 entries across 5 versions & 1 rubygems

Version Path
spontaneous-0.2.0.beta10 application/js/services.js
spontaneous-0.2.0.beta9 application/js/services.js
spontaneous-0.2.0.beta8 application/js/services.js
spontaneous-0.2.0.beta7 application/js/services.js
spontaneous-0.2.0.beta6 application/js/services.js