Skip to content

Commit

Permalink
Update jquery.number.js
Browse files Browse the repository at this point in the history
Changelog:

* Added support for the delete key (and modified comments to differentiate between delete and backspace)
* Allow negative sign to be inserted at beginning of existing numbers
* Remove negative sign when value changes to "-0.00" (like when deleting the "1" in "-1.00")
* Don't remove negative sign when deleting numbers to the right of the decimal
* Allow more standard browser hotkeys like Ctrl+P, Ctrl+S, Ctrl+F, Ctrl+Z, F3, F5, F11, etc. within fields
* Properly initialize 'data.init' value when prepopulated via browser autofill or F5
* Consistent use of tabs for indenting code and consistent equality operators

Quickly tested in Firefox 32, Chrome 37, and IE 11 on Win7.
  • Loading branch information
RichardDavies committed Sep 10, 2014
1 parent 52420dd commit e0e40af
Showing 1 changed file with 491 additions and 434 deletions.
Loading

0 comments on commit e0e40af

Please sign in to comment.