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-1.0.0 lib/whowish_word/rails/public/javascripts/6_whowish_word_value_guard_and_sanitizer.js
whowish_word-0.6.5 lib/whowish_word/rails/public/javascripts/6_whowish_word_value_guard_and_sanitizer.js
whowish_word-0.6.4 lib/whowish_word/rails/public/javascripts/6_whowish_word_value_guard_and_sanitizer.js
whowish_word-0.6.3 lib/whowish_word/rails/public/javascripts/6_whowish_word_value_guard_and_sanitizer.js
whowish_word-0.6.2 lib/whowish_word/rails/public/javascripts/6_whowish_word_value_guard_and_sanitizer.js
whowish_word-0.6.2gem lib/whowish_word/rails/public/javascripts/6_whowish_word_value_guard_and_sanitizer.js
whowish_word-0.6.1 lib/whowish_word/rails/public/javascripts/6_whowish_word_value_guard_and_sanitizer.js
whowish_word-0.6.0 lib/whowish_word/rails/public/javascripts/6_whowish_word_value_guard_and_sanitizer.js
whowish_word-0.5.5 lib/whowish_word/rails/public/javascripts/6_whowish_word_value_guard_and_sanitizer.js
whowish_word-0.5.4 lib/whowish_word/rails/public/javascripts/6_whowish_word_value_guard_and_sanitizer.js
whowish_word-0.5.3 lib/whowish_word/rails/public/javascripts/6_whowish_word_value_guard_and_sanitizer.js
whowish_word-0.5.2 lib/whowish_word/rails/public/javascripts/6_whowish_word_value_guard_and_sanitizer.js
whowish_word-0.5.1 lib/whowish_word/rails/public/javascripts/6_whowish_word_value_guard_and_sanitizer.js
whowish_word-0.5.0 lib/whowish_word/rails/public/javascripts/6_whowish_word_value_guard_and_sanitizer.js
whowish_word-0.4.0 lib/whowish_word/rails/public/javascripts/6_whowish_word_value_guard_and_sanitizer.js
whowish_word-0.3.3 lib/whowish_word/rails/public/javascripts/6_whowish_word_value_guard_and_sanitizer.js
whowish_word-0.3.2 lib/whowish_word/rails/public/javascripts/6_whowish_word_value_guard_and_sanitizer.js
whowish_word-0.3.1 lib/whowish_word/rails/public/javascripts/6_whowish_word_value_guard_and_sanitizer.js
whowish_word-0.3.0 lib/whowish_word/rails/public/javascripts/6_whowish_word_value_guard_and_sanitizer.js
whowish_word-0.2.7 lib/whowish_word/rails/public/javascripts/6_whowish_word_value_guard_and_sanitizer.js