Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update jquery.number.js #62

Merged
merged 1 commit into from
Sep 10, 2014
Merged

Update jquery.number.js #62

merged 1 commit into from
Sep 10, 2014

Conversation

RichardDavies
Copy link
Contributor

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.

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.
@RichardDavies RichardDavies mentioned this pull request Sep 10, 2014
samatcd pushed a commit that referenced this pull request Sep 10, 2014
Delete key support, browser hotkey improvement, and improved negative sign behaviour
@samatcd samatcd merged commit 4d78760 into customd:master Sep 10, 2014
@samatcd
Copy link
Member

samatcd commented Sep 10, 2014

Excellent update, thanks.

@RichardDavies
Copy link
Contributor Author

Thanks. You are going to update the minified version and issue a new release soon?

@samatcd
Copy link
Member

samatcd commented Sep 14, 2014

Released as 2.1.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants