Sha256: 73e4ea1deaade402b213c3b01f01f7ef06b024d5f802f2ee644e9a12cf3bb81b

Contents?: true

Size: 455 Bytes

Versions: 29

Compression:

Stored size: 455 Bytes

Contents

var WhowishWordValueGuardAndSanitizer = {
	
	check: function(element) {
		
		var val;
		
		if (element.tagName.toLowerCase() != "select"
			&& (typeof(val = $w(element).val())).toLowerCase() == "string"
			&& whowishWordHelper.match(val)) {
			
			if ($w('#'+whowishWordHelper.makeEditIconId(element, "value")).length == 0) {
				return true;
			} else {
				$w(element).val(whowishWordHelper.sanitize(val));
			}
			
		}
		
		return false;
				
	}

  
};

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
whowish_word-0.2.6 lib/whowish_word/rails/public/javascripts/6_whowish_word_value_guard_and_sanitizer.js
whowish_word-0.2.5 lib/whowish_word/rails/public/javascripts/6_whowish_word_value_guard_and_sanitizer.js
whowish_word-0.2.3 lib/whowish_word/rails/public/javascripts/6_whowish_word_value_guard_and_sanitizer.js
whowish_word-0.2.2 lib/whowish_word/rails/public/javascripts/6_whowish_word_value_guard_and_sanitizer.js
whowish_word-0.2.1 lib/whowish_word/rails/public/javascripts/6_whowish_word_value_guard_and_sanitizer.js
whowish_word-0.2.0 lib/whowish_word/rails/public/javascripts/6_whowish_word_value_guard_and_sanitizer.js
whowish_word-0.1.9 lib/whowish_word/rails/public/javascripts/6_whowish_word_value_guard_and_sanitizer.js
whowish_word-0.1.8 lib/whowish_word/rails/public/javascripts/6_whowish_word_value_guard_and_sanitizer.js
whowish_word-0.1.7 lib/whowish_word/rails/public/javascripts/6_whowish_word_value_guard_and_sanitizer.js