Sha256: 8390b09555c27fea114a1d763f6190507b1ed6034b9e95c8de24f2c20dbe8c87

Contents?: true

Size: 548 Bytes

Versions: 19

Compression:

Stored size: 548 Bytes

Contents

Spider.defineWidget('Spider.Forms.Input', {
	
	autoInit: false,
	
	startup: function(){
		var connect = this.getClassInfo('connect');
		var w = this;
		for (var i=0; i<connect.length; i++){
			var currConn = connect[i];
			$('.el-'+currConn, w.el.parents('form').eq(0)).parentWidget().change(function(val){
				w.onConnectedChange(currConn, val);
			});
		}
	},
	
	onConnectedChange: function(connected, val){
		this.reload();
	},
	
	change: function(callback){
		this.bind('change', callback);
	},
	
	val: function(){
		this.el.val();
	}
	
	
	
});

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
spiderfw-0.5.19 apps/core/forms/public/input.js
spiderfw-0.5.18 apps/core/forms/public/input.js
spiderfw-0.5.17 apps/core/forms/public/input.js
spiderfw-0.5.16 apps/core/forms/public/input.js
spiderfw-0.5.15 apps/core/forms/public/input.js
spiderfw-0.5.14 apps/core/forms/public/input.js
spiderfw-0.5.13 apps/core/forms/public/input.js
spiderfw-0.5.12 apps/core/forms/public/input.js
spiderfw-0.5.11 apps/core/forms/public/input.js
spiderfw-0.5.10 apps/core/forms/public/input.js
spiderfw-0.5.9 apps/core/forms/public/input.js
spiderfw-0.5.7 apps/core/forms/public/input.js
spiderfw-0.5.6 apps/core/forms/public/input.js
spiderfw-0.5.5 apps/core/forms/public/input.js
spiderfw-0.5.4 apps/core/forms/public/input.js
spiderfw-0.5.3 apps/core/forms/public/input.js
spiderfw-0.5.2 apps/core/forms/public/input.js
spiderfw-0.5.1 apps/core/forms/public/input.js
spiderfw-0.5 apps/core/forms/public/input.js