o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1347674518.778784: @value"§{I" class:EFI"ProcessedAsset;FI"logical_path;FI"validation.js;FI" pathname;FI"o/Users/stephanebrossier/Work/OpenSource/killbill/killbill-admin-ui/vendor/assets/javascripts/validation.js;FI"content_type;FI"application/javascript;FI" mtime;FI"2012-09-08T23:07:48-07:00;FI" length;FiCI" digest;F"%a35066239034a767c9c9727f292ab33fI" source;FI"C// Restrict numeric input for a text field // TODO - consider switching to HTML5's function preventNonNumericValues(event) { // Allow: backspace, delete, tab, escape, and enter if (event.keyCode == 46 || event.keyCode == 8 || event.keyCode == 9 || event.keyCode == 27 || event.keyCode == 13 || // Allow: Ctrl+A (event.keyCode == 65 && event.ctrlKey === true) || // Allow dot (event.keyCode == 190) || // Allow: home, end, left, right (event.keyCode >= 35 && event.keyCode <= 39)) { // let it happen, don't do anything return; } else { // Ensure that it is a number and stop the keypress if (event.shiftKey || (event.keyCode < 48 || event.keyCode > 57) && (event.keyCode < 96 || event.keyCode > 105 )) { event.preventDefault(); } } } ; ;FI"dependency_digest;F"%c48a2003f389fe0e863ff0eb7d3e0e78I"required_paths;F[I"o/Users/stephanebrossier/Work/OpenSource/killbill/killbill-admin-ui/vendor/assets/javascripts/validation.js;FI"dependency_paths;F[{I" path;FI"o/Users/stephanebrossier/Work/OpenSource/killbill/killbill-admin-ui/vendor/assets/javascripts/validation.js;FI" mtime;FI"2012-09-08T23:07:48-07:00;FI" digest;F"%27a6b4c5adb43a28583794674fc684a6I" _version;F"%979b712d447c42bc88f489bb52e370d7