Created
August 12, 2014 20:08
-
-
Save orlaqp/ccba41b0270b0c5a470f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$this.on('keypress.autoNumeric', function (e) { | |
var holder = getHolder($this), | |
processed = holder.processed; | |
holder.init(e); | |
holder.settings.oEvent = 'keypress'; | |
if (holder.skipAllways(e)) { | |
return true; | |
} | |
if (processed) { | |
e.preventDefault(); | |
return false; | |
} | |
if (holder.processAllways() || holder.processKeypress()) { | |
holder.formatQuick(); | |
e.preventDefault(); | |
return false; | |
} | |
holder.formatted = false; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment