Skip to content

Commit

Permalink
more bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mottie committed Jul 24, 2012
1 parent 77213b0 commit 7e4c01d
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 16 deletions.
14 changes: 14 additions & 0 deletions README.markdown
Expand Up @@ -73,6 +73,20 @@ Moved to the Wiki Pages: [Home](https://github.com/Mottie/Keyboard/wiki/Home) |

Only the latest changes will be shown below, see the wiki log to view older versions.

### Version 1.11 (7/24/2012)

* Switching inputs should now work properly
* Extra thanks to [david-hollifield](https://github.com/david-hollifield) for the help in fixing this bug!
* Fixes [issues #86](https://github.com/Mottie/Keyboard/issues/86).
* Modified the validate procressing to no longer disable the accept button.
* The accept button now gets a class applied indicating if the input is valid (`ui-keyboard-valid-input`) or invalid (`ui-keyboard-invalid-input`).
* Very basic css added to colorize the accept button for these states.
* Fixes [issue #88](https://github.com/Mottie/Keyboard/issues/88).
* Added `cancelClose` option
* This option only works with `acceptValid` is `true` and the `validate` function returns `false`.
* If `true`, this option will cancel the keyboard close initiated by the accept button. The keyboard can still be closed by pressing escape or the cancel button.
* If `false`, the validate function will ignore the user input, restore the input's previous value, and close the keyboard.

### Version 1.10 (7/9/2012)

* Added `{next}` and `{prev}` action keys which makes switching between input/textareas easier.
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.keyboard.js
@@ -1,6 +1,6 @@
/*!
jQuery UI Virtual Keyboard
Version 1.10
Version 1.11
Author: Jeremy Satterfield
Modified: Rob Garrison (Mottie on github)
Expand Down Expand Up @@ -709,7 +709,7 @@ $.keyboard = function(el, options){
base.checkValid = function(){
var valid = true;
if (o.validate && typeof o.validate === "function") {
valid = o.validate(base, base.$preview.val(), false);
valid = o.validate(base, base.$preview.val(), false);
}
// toggle accept button, "disabled" class defined in the css
base.$keyboard.find('.ui-keyboard-accept')
Expand Down

0 comments on commit 7e4c01d

Please sign in to comment.