diff options
author | Trent Richardson <trentdrichardson@gmail.com> | 2013-11-11 11:35:56 -0500 |
---|---|---|
committer | Trent Richardson <trentdrichardson@gmail.com> | 2013-11-11 11:35:56 -0500 |
commit | f50f18d0a3a5a0fb04b1e30311cc3cb44dcbca48 (patch) | |
tree | daf820f1941dc044e9869029a91f85c47fc9e086 /jquery-impromptu.js | |
parent | c390302a246e27e0754fac79625e3600565bd7f6 (diff) | |
download | jQuery-Impromptu-f50f18d0a3a5a0fb04b1e30311cc3cb44dcbca48.zip jQuery-Impromptu-f50f18d0a3a5a0fb04b1e30311cc3cb44dcbca48.tar.gz jQuery-Impromptu-f50f18d0a3a5a0fb04b1e30311cc3cb44dcbca48.tar.bz2 |
Fixes defaultButton assignmentv5.1.1
Diffstat (limited to 'jquery-impromptu.js')
-rw-r--r-- | jquery-impromptu.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jquery-impromptu.js b/jquery-impromptu.js index fc0ab74..6cc82bd 100644 --- a/jquery-impromptu.js +++ b/jquery-impromptu.js @@ -1,4 +1,4 @@ -/*! jQuery-Impromptu - v5.2.0
+/*! jQuery-Impromptu - v5.1.1
* http://trentrichardson.com/Impromptu
* Copyright (c) 2013 Trent Richardson; Licensed MIT */
(function($) {
@@ -438,7 +438,7 @@ for(k in stateobj.buttons){
v = stateobj.buttons[k],
- defbtn = stateobj.focus === i || stateobj.defaultButton === i ? ($.prompt.currentPrefix + 'defaultbutton ' + opts.classes.defaultButton) : '';
+ defbtn = stateobj.focus === i || (isNaN(stateobj.focus) && stateobj.defaultButton === i) ? ($.prompt.currentPrefix + 'defaultbutton ' + opts.classes.defaultButton) : '';
if(typeof v === 'object'){
state += '<button class="'+ opts.classes.button +' '+ defbtn;
|