Sha256: 165d029d581a2071d47bc5ee88b1e565926ee12a0a1314f32432bbe64615e9de

Contents?: true

Size: 381 Bytes

Versions: 4

Compression:

Stored size: 381 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

4 entries across 4 versions & 1 rubygems

Version Path
whowish_word-0.1.3 lib/whowish_word/rails/public/javascripts/7_whowish_word_value_handler.js
whowish_word-0.1.2 lib/whowish_word/rails/public/javascripts/7_whowish_word_value_handler.js
whowish_word-0.1.1 lib/whowish_word/rails/public/javascripts/7_whowish_word_value_handler.js
whowish_word-0.1.0 lib/whowish_word/rails/public/javascripts/7_whowish_word_value_handler.js