Sha256: 7d5ac1fc098f336363fdc57695baa28310b7c31fcf67458347dd825cc5e22421
Contents?: true
Size: 650 Bytes
Versions: 6
Compression:
Stored size: 650 Bytes
Contents
Spider.defineWidget('Spider.Forms.Select', 'Spider.Forms.Input', { autoInit: true, ready: function(){ if (this.el.is('select[multiple]')){ this.el.attr('title', 'Aggiungi...'); this.el.asmSelect({ removeLabel: 'togli', highlightAddedLabel: 'Aggiunto: ', highlightRemovedLabel: 'Tolto: ' }); $('.asmSelect option:first', this.el.parent()).addClass('asmSelectTitle') .attr("selected", false) .attr("disabled", true); } }, onConnectedChange: function(connected, val){ var params = {}; params[connected] = val; this.reload({connected: params}); } });
Version data entries
6 entries across 6 versions & 1 rubygems