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