Sha256: ce64859b516f7cd87240f078c6c7a59d162e6185a21fb8bd3fa3d1115b7664f2
Contents?: true
Size: 542 Bytes
Versions: 2
Compression:
Stored size: 542 Bytes
Contents
var WhowishWordValueHandler = WhowishWordContentHandler.extend({ init: function(elem){ this.element_id = elem.id; }, setContent: function(content){ var elem = $w('#' + this.element_id)[0]; $w(elem).val(content); if (elem.attributes['value'] != undefined) { elem.attributes['value'].value = content; } if (elem.value != undefined) { elem.value = content; } $w(elem).attr('value', content); }, getContent: function(){ var elem = $w('#' + this.element_id)[0]; return $w(elem).val(); } });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
whowish_word-0.1.9 | lib/whowish_word/rails/public/javascripts/7_whowish_word_value_handler.js |
whowish_word-0.1.8 | lib/whowish_word/rails/public/javascripts/7_whowish_word_value_handler.js |