summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTrent Richardson <trentdrichardson@gmail.com>2014-04-17 16:05:55 -0400
committerTrent Richardson <trentdrichardson@gmail.com>2014-04-17 16:05:55 -0400
commitece8ca33dbea43068d9a9fdeceeb24951ec1dd9a (patch)
treec5da86ecc26e7b3e247a972a8462f256983b493e /src
parent21bd1aa8433cb273b48e1a4ffd6d15403639e535 (diff)
downloadjQuery-Impromptu-ece8ca33dbea43068d9a9fdeceeb24951ec1dd9a.zip
jQuery-Impromptu-ece8ca33dbea43068d9a9fdeceeb24951ec1dd9a.tar.gz
jQuery-Impromptu-ece8ca33dbea43068d9a9fdeceeb24951ec1dd9a.tar.bz2
Issue #33 - currentStateName does not get reset
Diffstat (limited to 'src')
-rw-r--r--src/jquery-impromptu.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/jquery-impromptu.js b/src/jquery-impromptu.js
index 41f23ef..1593f9d 100644
--- a/src/jquery-impromptu.js
+++ b/src/jquery-impromptu.js
@@ -504,9 +504,12 @@
else if($state.next().length > 0){
$.prompt.nextState(rm);
}
- else{
+ else if($state.prev().length > 0){
$.prompt.prevState(rm);
}
+ else{
+ $.prompt.close();
+ }
}
else{
$state.slideUp('slow', rm);
@@ -666,6 +669,7 @@
$(window).off('resize',$.prompt.position);
});
}
+ $.prompt.currentStateName = "";
};
/**