summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrent Richardson <trentdrichardson@gmail.com>2013-05-12 07:14:53 -0400
committerTrent Richardson <trentdrichardson@gmail.com>2013-05-12 07:14:53 -0400
commit29ab7211b5d68cc234c16cef0224203998484f22 (patch)
treeb37b7a950c8777ade3eb6fc4f89d0ea26f82a3b5
parent422c0220f04357bc65feb605ccab767d34a08412 (diff)
downloadjQuery-Impromptu-29ab7211b5d68cc234c16cef0224203998484f22.zip
jQuery-Impromptu-29ab7211b5d68cc234c16cef0224203998484f22.tar.gz
jQuery-Impromptu-29ab7211b5d68cc234c16cef0224203998484f22.tar.bz2
Updates new versionv4.3
-rw-r--r--index.html11
-rw-r--r--jquery-impromptu.js4
2 files changed, 12 insertions, 3 deletions
diff --git a/index.html b/index.html
index 7cd9526..f1f3116 100644
--- a/index.html
+++ b/index.html
@@ -151,7 +151,7 @@
<h3>Version</h3>
<p>Version 4.3</p>
- <p>Last updated on 05/07/2013</p>
+ <p>Last updated on 05/12/2013</p>
<p>jQuery Impromptu is currently available for use in all personal or commercial projects under both MIT and GPL licenses. This means that you can choose the license that best suits your project, and use it accordingly. </p>
<ul>
@@ -171,6 +171,9 @@
<h3>msg</h3>
<p>The message can either be an html string, or an object of "states". Each state has the following properties:</p>
<dl>
+ <dt>name</dt>
+ <dd>A valid variable name to access the state by. <em>Default: State's array index or object key</dd>
+
<dt>html</dt>
<dd>A string of html or text for the content</dd>
@@ -292,6 +295,12 @@
<dt>jQuery.prompt.getState(stateName)</dt>
<dd>Returns a jquery object of the state, so you can update the content within it.</dd>
+ <dt>jQuery.prompt.addState(stateName, stateOptions, insertAfterState)</dt>
+ <dd>Injects a new state after the indicated insertAfterState name. Returns a jQuery object of the new state.</dd>
+
+ <dt>jQuery.prompt.removeState(stateName)</dt>
+ <dd>Removes the state. Returns true on success, false on failure.</dd>
+
<dt>jQuery.prompt.goToState(stateName, callback)</dt>
<dd>Transitions to the specified state. Callback represents a statechanged event.</dd>
diff --git a/jquery-impromptu.js b/jquery-impromptu.js
index fbeb0cf..c577d1b 100644
--- a/jquery-impromptu.js
+++ b/jquery-impromptu.js
@@ -1,8 +1,8 @@
/*
* jQuery Impromptu
* By: Trent Richardson [http://trentrichardson.com]
- * Version 4.3-dev
- * Last Modified: 05/07/2013
+ * Version 4.3
+ * Last Modified: 05/12/2013
*
* Copyright 2013 Trent Richardson
* You may use this project under MIT or GPL licenses.