- Fixed tab in key // thanks movalz issue #212
- Fixed the cusor position when tabbing in Chrome // thanks Dennis Smith issue #221
- Fixed the destroy method // thanks brunoporto & Mabusto issue #225
- Fixed the readme file to show correct $.extend defaults // thanks gayan85 issue #229
- Modified the "set" method to handle NaN
- Fixed destroy method
- Added Typings support - thanks bcherny
- UMD support
- Fixed bug when pasting using ctrl & v keys
- Fixed bug that allowed two currency symbols
- Fixed bug when pasting value and the decimal seperator is a comma ","
- Fixed 'aForm'option.
- Updated the readme file
- Added / fixed option to address asp.Net WebForm postback.
- please see the readme section on default settings & options
- Added / fixed support for asp.Net WebForm postback.
- During postback the default value is re-rendered showing the updated value
- Because autoNumeric cannot distinguish between a page re-load and asp.net form postback, the following HTML data attribute is REQUIRED (data-an-default="same value as the value attribute") to prevent errors on postback
- Example:
<input type="text" id="someID" value="1234.56" data-an-default="1234.56">
- Rewrote the "getString" & "getArray" methods to index successful elements and inputs that are controlled by autoNumeric. This ensures the proper input index is used when replacing the formatted value.
- Added support for FireFox for Mac meta key "keycode 224" - Thanks Ney Estrabelli
- Revert 'set' back to version 1.9.34
- Modified the 'set', 'getString' & 'getArray' methods
- Modified the 'nBracket' function
- General code clean up
- Fixed bug in "ctrl + v" paste event introduced in 1.9.32
- Fixed bug when the "update" method is called in the "onfocus" event
- Fixed the "getString" & "getArray" methods when multiple inputs share the same name - Thanks Retromax
- Fixed bug in "ctrl + v" paste event to properly round
- never officially release
- Fixed bug introduced 1.9.29 too interested in Ohio State vs. Oregon
- Fixed bug introduced in 1.9.27
- Fixed focusout event when the thousand separator is a period "." and only one is present "x.xxx" with not other alpha characters.
- Merged a mod that makes the defaults public and over ridable - Thanks Peter Boccia
- Fixed page reload when the thousand separator is a period "."
- Fixed "getString" & "getArray" methods when multiple forms having some shared named inputs
- Fixed mRound option "round-half-even"
- Modified the "set" method to not throw an error when trying to "set" a null value
- Changed the case on the supported elements
- This was required because jQuery.prop('tagName') returns upper-case on html5 pages and returns lower-case on xmhtl pages
- Merged mod on the "getString" method
- Fixed a bug when a negative value uses brackets and currency sign on page reload thanks to Allen Dumaine
- Additional mods to the "set" method.
- Eliminated lastSetValue setting
- Mod to checkValue function to handle empty string - thanks to jedichenbin.
- If CHF rounding is used decimal is automatically set to 2 places
- Fixed issue for very small numbers - thanks to jedichenbin.
- Added input type="tel" support.
- Added support for Swiss currency rounding to the nearest ".00 or .05"
- Fixed bug in Round-Half-Even "Bankers Rounding"
- Fixed formatting on page load for text elements.
- Fixed leading zero on page load when option lZero is set to 'keep'.
- Fixed the checkValue function when vary small numbers in scientific notation are passed via the set method.
- Modified the rounding method so zero value is not returned with a negative sign
- Fixed bug introduced in version 1.9.14
- Added additional supported tags ('b', 'caption', 'cite', 'code', 'dd', 'del', 'div', 'dfn', 'dt', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ins', 'kdb', 'label', 'li', 'output', 'p', 'q', 's', 'sample', 'span', 'strong', 'td', 'th', 'u', 'var')
- Moved the routine that tests for supported tags
- General code clean-up
- Fixed the "get" method when the input receives focus for a second time.
- Fixed brackets on page load when the decimal character is a comma.
- Another mod to the 'set' method.
- Fixed the 'set' method to handle page reload using the back button.
- Fixed how non-input tags default value is handled. When the default is an empty string and aSign is not empty the return value is now and empty string.
- Modified how default values are handled when the decimal character equals ',' comma. Your default value can now use either a a period '.' or comma ',' as the decimal separator
- Modified the caret placement on focusin (tab in). If only the currency sign is visible the caret is placed in the proper location depending on the sign placement (prefix or suffix).
- Changed bind / unbind to on / off.
- added lastSetValue to settings - this saves the unrounded value from the set method - $('selector').data('autoNumeric').lastSetValue; - helpful when you need to change the rounding accuracy
- Modified /fixed the format default values on page ready.
- Fixed the caret position when jumping over the thousand separator with back arrow.
- Fixed bug introduced in 1.9.3 with shift key.
- additional modification to the processKeypress function that automatically inserts a negative sign when vMax less tham or equal to 0 and vMin is less tham vMax.
- Modified processKeypress function to automatically insert a negative sign when vMax <=0 and vMin < 0.
- Changed the getSting and getArray functions to use decodeURIComponent() instead of unescape() which is depreciated
- Merged issue #11 - Both getString and getArray were using escaped versions of the name from jQuery's serialization. So this change wraps the name finder with quotes and unescapes the name.Fixed a bug in autoCode that corrects the pasted values and page re-load - Thanks Cory.
- Merged issue #12 - If a input is readonly during "init", autocomplete won't work if the input is enabled later. This commit should fix the Problem - Thanks Sven.
- Fixed a bug in autoCode function that corrects pasted values and page re-load
- Added support for "shift" + "insert" paste key combination
- Modified the "checkValue" function - eliminated redundant code
- Modified the "update" method include calling the "getHolder" function which updates the regular expressions
- Modified the "getHolder function so the regular expressions are updated
- Modified the "set" method to convert value from number to string
- Modified the checkValue function to handle values as text with the exception of values less than "0.000001 and greater than -1"
- Fixed a rounding error when the integers were 15 or more digits in length
- Added "use strict";
- Fixed the "get" and "set" methods by moving the settings.oEvent property to ensure the error message would be thrown if the element had not been inialized prior to calling the "get" and "set" methods
- Fixed the "init" when there is a default and value aForm=true and the aSep and aDec are not the defaults
- Fixed the "getSting" method - it use to returned an error when no values were entered
- Modified the "init" method to better handle default and pre-existing values
- Modified the "set" method - removed the routine that checked for values less than .000001 and greater than -1 and placed it in a separate function named checkValue()
- Modified the "get" method:
- Added a call to the checkValue() function - this corrects returned values example - when the input value was "12." the returned value was "12." - it now returns "12"
- When no numeric character is entered the returned value is an empty string "".
- Removed the error message when calling the 'init' methods multiple times. This was done when using the class selector for the 'init' method and then dynamically adding input(s) it allows you to use the same selector to init autoNumeric. Please note: if the input is already been initialized no changes to the option will occur you still need to use the update method to change exisiting options.
- Added support for brackets '[,]', parentheses '(,)', braces '{,}' and '<,>' to the nBracket setting. Please note: the following format nBracket: '(,)' that the left and right symbol used to represent negative numbers must be enclosed in quote marks and separated by a comma to function properly.
- Fixed readonly - this occured when you toggle the readonly attribute
- Fixed the getString and getArray methods under jQuery-1.9.1
-
Added input[type=hidden] support - this was done mainly for backward compatibility.
-
The "get" method now returns a numeric string - this also was done for backward compatibility.
-
Allowed dGroup settings to be passed as a numeric value or text representing a numeric value
-
Allows input fields without type that defaults to type text - Thanks Mathieu DEMONT
- Modified the 'get' method so when a field is blank and the setting wEmpty:'empty' a empty string('') is returned.
-
autoNumeric() 1.8.0 is not compatible with earlier versions but I believe you will find version 1.8.0's new functionality and ease of use worth the effort to convert.
-
Changed autoNumeric structure to conform to jQuery's recommended plugin development.
-
Created a single namespace and added multiple methods.
-
Added HTML 5 data support and eliminated the metadata plugin dependency.
-
Added support for the following elements: 'DD', 'DT', 'H1', 'H2', 'H3', 'H4', 'H5', 'H6', 'input', 'LABEL', 'P', 'SPAN', 'TD', 'TH'.
-
Changed the settings loading order to defaults, HTML5 data then options. Now the defaults settings are overridden by HTML5 data and options overrides both defaults & HTML5 data.
-
Added "lZero" to the settings to control leading zero behavior.
-
Added "nBracket" to the settings which controls if negative values are display with brackets.
-
Changed the callback feature to accept functions only.
-
Improved the 'aForm' behavior that allows values to be automatically formatted on page ready.
-
Fixed the issue for numbers that are less than 1 and greater than -1 and have six or more decimal places.
-
Fixed 'crtl' + 'a' (select all) and 'ctrl' + 'c' (copy) combined key events.
-
Fixed a IE & FF bug on readonly attribute.
-
General code clean up