Sha256: 87280f51b265c1119395f43df74a95a3188d13df0d93450637065202f4dd1964

Contents?: true

Size: 416 Bytes

Versions: 9

Compression:

Stored size: 416 Bytes

Contents

Spider.defineWidget('Spider.Forms.Select', 'Spider.Forms.Input', {
	
	autoInit: true,
	
	ready: function(){
		if (this.el.is('select[multiple]')) this.el.asmSelect({
			removeLabel: 'togli',
			highlightAddedLabel: 'Aggiunto: ',
			highlightRemovedLabel: 'Tolto: '
		});
	},
	
	onConnectedChange: function(connected, val){
		var params = {};
		params[connected] = val;
		this.reload({connected: params});
	}
    
});

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
spiderfw-0.5.13 apps/core/forms/public/select.js
spiderfw-0.5.12 apps/core/forms/public/select.js
spiderfw-0.5.11 apps/core/forms/public/select.js
spiderfw-0.5.10 apps/core/forms/public/select.js
spiderfw-0.5.9 apps/core/forms/public/select.js
spiderfw-0.5.7 apps/core/forms/public/select.js
spiderfw-0.5.6 apps/core/forms/public/select.js
spiderfw-0.5.5 apps/core/forms/public/select.js
spiderfw-0.5.4 apps/core/forms/public/select.js