Sha256: 07ec95db6b556ca6a0fc26ea7ade4a73d129e378d8a021ac17add1d5a40e45ff
Contents?: true
Size: 1.71 KB
Versions: 9
Compression:
Stored size: 1.71 KB
Contents
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1345505264.100377:@value"q{I" class:EFI"ProcessedAsset; FI"logical_path; FI"validation.js; FI" pathname; FI"]/Users/pierre/open-source/ning/killbill-admin-ui/vendor/assets/javascripts/validation.js; FI"content_type; FI"application/javascript; FI" mtime; FI"2012-08-20T16:24:20-07:00; FI"length; FiCI"digest; F"%3336545c759111c1e406586535499b19I"source; FI"C// Restrict numeric input for a text field // TODO - consider switching to HTML5's <input type="number" /> 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"%7abbeb951ff2c14a795224c405e19a83I"required_paths; F[I"]/Users/pierre/open-source/ning/killbill-admin-ui/vendor/assets/javascripts/validation.js; FI"dependency_paths; F[{I" path; FI"]/Users/pierre/open-source/ning/killbill-admin-ui/vendor/assets/javascripts/validation.js; FI" mtime; FI"2012-08-20T16:24:20-07:00; FI"digest; F"%9c7694d0cfacba737edb028a45fa1c30I" _version; F"%9f3b95dd7ea3030dc35985c0a8020862
Version data entries
9 entries across 9 versions & 1 rubygems