Sha256: 7440100b6da7cf2c94b62c7675f17ff6fe19ee9db60ddccda68c99da1ae1b9e9

Contents?: true

Size: 502 Bytes

Versions: 1

Compression:

Stored size: 502 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;
	}
	
	if (this.element.value != undefined) {
		this.element.value = content;
	}
	
	$w(this.element).attr('value', content);
  },
  
  getContent: function(){
    return $w(this.element).val();
  }
  
});

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
whowish_word-0.1.7 lib/whowish_word/rails/public/javascripts/7_whowish_word_value_handler.js