Sha256: 29320fdc837b81d375b665bbe3f048d417d8d300ad0a2d2dc1a3035042cb4f63

Contents?: true

Size: 539 Bytes

Versions: 26

Compression:

Stored size: 539 Bytes

Contents

var WhowishWordValueHandler = WhowishWordContentHandler.extend({
	
  init: function(elem){
    this.elementId = elem.id;
  },
  
  setContent: function(content){
  	var elem = $w('#' + this.elementId)[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.elementId)[0];
    return $w(elem).val();
  }
  
});

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
whowish_word-1.0.0 lib/whowish_word/rails/public/javascripts/7_whowish_word_value_handler.js
whowish_word-0.6.5 lib/whowish_word/rails/public/javascripts/7_whowish_word_value_handler.js
whowish_word-0.6.4 lib/whowish_word/rails/public/javascripts/7_whowish_word_value_handler.js
whowish_word-0.6.3 lib/whowish_word/rails/public/javascripts/7_whowish_word_value_handler.js
whowish_word-0.6.2 lib/whowish_word/rails/public/javascripts/7_whowish_word_value_handler.js
whowish_word-0.6.2gem lib/whowish_word/rails/public/javascripts/7_whowish_word_value_handler.js
whowish_word-0.6.1 lib/whowish_word/rails/public/javascripts/7_whowish_word_value_handler.js
whowish_word-0.6.0 lib/whowish_word/rails/public/javascripts/7_whowish_word_value_handler.js
whowish_word-0.5.5 lib/whowish_word/rails/public/javascripts/7_whowish_word_value_handler.js
whowish_word-0.5.4 lib/whowish_word/rails/public/javascripts/7_whowish_word_value_handler.js
whowish_word-0.5.3 lib/whowish_word/rails/public/javascripts/7_whowish_word_value_handler.js
whowish_word-0.5.2 lib/whowish_word/rails/public/javascripts/7_whowish_word_value_handler.js
whowish_word-0.5.1 lib/whowish_word/rails/public/javascripts/7_whowish_word_value_handler.js
whowish_word-0.5.0 lib/whowish_word/rails/public/javascripts/7_whowish_word_value_handler.js
whowish_word-0.4.0 lib/whowish_word/rails/public/javascripts/7_whowish_word_value_handler.js
whowish_word-0.3.3 lib/whowish_word/rails/public/javascripts/7_whowish_word_value_handler.js
whowish_word-0.3.2 lib/whowish_word/rails/public/javascripts/7_whowish_word_value_handler.js
whowish_word-0.3.1 lib/whowish_word/rails/public/javascripts/7_whowish_word_value_handler.js
whowish_word-0.3.0 lib/whowish_word/rails/public/javascripts/7_whowish_word_value_handler.js
whowish_word-0.2.7 lib/whowish_word/rails/public/javascripts/7_whowish_word_value_handler.js