Sha256: 13e96e59a94a155e115e016111960dd47b6dfa8dd3416e0c0ad82c388090b365

Contents?: true

Size: 399 Bytes

Versions: 3

Compression:

Stored size: 399 Bytes

Contents

var WhowishWordValueHandler = WhowishWordContentHandler.extend({
	
  init: function(elem){
    this.element = elem;
  },
  
  setContent: function(content){
    $w(this.element).val(content);

	if (this.element.attributes['value'] != undefined) {
		this.element.attributes['value'].value = content;
	}
  },
  
  getContent: function(){
    return $w(this.element).val();
  }
  
});

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
whowish_word-0.1.6 lib/whowish_word/rails/public/javascripts/7_whowish_word_value_handler.js
whowish_word-0.1.5 lib/whowish_word/rails/public/javascripts/7_whowish_word_value_handler.js
whowish_word-0.1.4 lib/whowish_word/rails/public/javascripts/7_whowish_word_value_handler.js