summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrent Richardson <trentdrichardson@gmail.com>2014-12-27 18:06:20 -0500
committerTrent Richardson <trentdrichardson@gmail.com>2014-12-27 18:06:20 -0500
commit2f0e93d983a60cb5be7beb153103466dc0b1435a (patch)
treecdb1500a5ed575c4e8d9c5a618492179dc5e6f86
parentad21567ea483ee342d31787e1cf46a0d7904652b (diff)
downloadjQuery-Impromptu-2f0e93d983a60cb5be7beb153103466dc0b1435a.zip
jQuery-Impromptu-2f0e93d983a60cb5be7beb153103466dc0b1435a.tar.gz
jQuery-Impromptu-2f0e93d983a60cb5be7beb153103466dc0b1435a.tar.bz2
Fixes demos for new version
-rw-r--r--bower.json2
-rw-r--r--dist/demos/loan_calculator.html2
-rw-r--r--dist/demos/purecss.html2
-rw-r--r--dist/demos/select_filter.html10
-rw-r--r--dist/demos/survey.html2
-rw-r--r--dist/demos/twitter_bootstrap.html2
-rw-r--r--dist/demos/user_manager.html2
-rw-r--r--jquery-impromptu.jquery.json4
-rw-r--r--src/demos/loan_calculator.html2
-rw-r--r--src/demos/purecss.html2
-rw-r--r--src/demos/select_filter.html10
-rw-r--r--src/demos/survey.html2
-rw-r--r--src/demos/twitter_bootstrap.html2
-rw-r--r--src/demos/user_manager.html2
14 files changed, 23 insertions, 23 deletions
diff --git a/bower.json b/bower.json
index 5160c17..691724d 100644
--- a/bower.json
+++ b/bower.json
@@ -1,6 +1,6 @@
{
"name": "jquery-impromptu",
- "version": "5.3.1",
+ "version": "6.0.0",
"main": [
"dist/jquery-impromptu.css",
"dist/jquery-impromptu.js"
diff --git a/dist/demos/loan_calculator.html b/dist/demos/loan_calculator.html
index c4909b2..3fbbfbb 100644
--- a/dist/demos/loan_calculator.html
+++ b/dist/demos/loan_calculator.html
@@ -93,7 +93,7 @@
}
};
- $.prompt.open(jqistates);
+ $.prompt(jqistates);
}
</script>
</head>
diff --git a/dist/demos/purecss.html b/dist/demos/purecss.html
index 0e86eee..e07c4bd 100644
--- a/dist/demos/purecss.html
+++ b/dist/demos/purecss.html
@@ -88,7 +88,7 @@
}
}
- $.prompt.open(temp,{
+ $.prompt(temp,{
close: function(e,v,m,f){
if(v !== undefined){
var str = "You can now process with this given information:<br />";
diff --git a/dist/demos/select_filter.html b/dist/demos/select_filter.html
index 2f45497..3f5c11c 100644
--- a/dist/demos/select_filter.html
+++ b/dist/demos/select_filter.html
@@ -51,7 +51,7 @@
e.preventDefault();
- var imp = $.prompt.open(html, {
+ var imp = $.prompt(html, {
title: 'Search Options',
buttons: { Ok:true,Cancel:false },
submit: function(e,v,m,f){
@@ -61,20 +61,20 @@
}
});
- var $so = $('#searchoptions', imp.getPrompt());
+ var $so = $('#searchoptions', imp);
$so.delegate('input', 'click', function(){
$('tr.checked', $so).removeClass('checked');
$(this).parent().parent().addClass('checked');
});
- $('#searchquery', imp.getPrompt()).focus().keydown(function(event){
+ $('#searchquery', imp).focus().keydown(function(event){
var $i = $(this),
query = $i.val(),
re = new RegExp(query,"i"),
html = "",
counter = 0,
- $sos = $('#optionsearchstatus',imp.getPrompt());
+ $sos = $('#optionsearchstatus',imp);
if(event.which == 13 || event.keyCode == 13 && $.trim(query) !== ''){
@@ -98,7 +98,7 @@
$so.find('tbody').html(html);
$so.find('tr:eq(0)').addClass('checked').find('input').attr('checked',true);
- $('#searchoptionswrapper',imp.getPrompt()).slideDown('slow', function(){
+ $('#searchoptionswrapper',imp).slideDown('slow', function(){
$sos.hide();
});
diff --git a/dist/demos/survey.html b/dist/demos/survey.html
index f249661..d4f8c3f 100644
--- a/dist/demos/survey.html
+++ b/dist/demos/survey.html
@@ -78,7 +78,7 @@
}
}
- $.prompt.open(temp,{
+ $.prompt(temp,{
close: function(e,v,m,f){
if(v !== undefined){
var str = "You can now process with this given information:<br />";
diff --git a/dist/demos/twitter_bootstrap.html b/dist/demos/twitter_bootstrap.html
index d595445..eca1583 100644
--- a/dist/demos/twitter_bootstrap.html
+++ b/dist/demos/twitter_bootstrap.html
@@ -88,7 +88,7 @@
}
}
- $.prompt.open(temp,{
+ $.prompt(temp,{
close: function(e,v,m,f){
if(v !== undefined){
var str = "You can now process with this given information:<br />";
diff --git a/dist/demos/user_manager.html b/dist/demos/user_manager.html
index 0201617..d23a660 100644
--- a/dist/demos/user_manager.html
+++ b/dist/demos/user_manager.html
@@ -37,7 +37,7 @@
'<div class="field"><label for="editfname">First Name</label><input type="text" id="editfname" name="editfname" value="'+ fname +'" /></div>'+
'<div class="field"><label for="editlname">Last Name</label><input type="text" id="editlname" name="editlname" value="'+ lname +'" /></div>';
- $.prompt.open(txt,{
+ $.prompt(txt,{
buttons:{Change:true, Cancel:false},
submit: function(e,v,m,f){
//this is simple pre submit validation, the submit function
diff --git a/jquery-impromptu.jquery.json b/jquery-impromptu.jquery.json
index f8469b5..570ce8e 100644
--- a/jquery-impromptu.jquery.json
+++ b/jquery-impromptu.jquery.json
@@ -2,8 +2,8 @@
"name": "jquery-impromptu",
"title": "jQuery-Impromptu",
"description": "An extension to help provide a more pleasant way to spontaneously prompt a user for input.",
- "version": "5.3.1",
- "modified": "2014-11-16",
+ "version": "6.0.0",
+ "modified": "2014-12-27",
"homepage": "http://trentrichardson.com/Impromptu",
"author": {
"name": "Trent Richardson",
diff --git a/src/demos/loan_calculator.html b/src/demos/loan_calculator.html
index c4909b2..3fbbfbb 100644
--- a/src/demos/loan_calculator.html
+++ b/src/demos/loan_calculator.html
@@ -93,7 +93,7 @@
}
};
- $.prompt.open(jqistates);
+ $.prompt(jqistates);
}
</script>
</head>
diff --git a/src/demos/purecss.html b/src/demos/purecss.html
index 0e86eee..e07c4bd 100644
--- a/src/demos/purecss.html
+++ b/src/demos/purecss.html
@@ -88,7 +88,7 @@
}
}
- $.prompt.open(temp,{
+ $.prompt(temp,{
close: function(e,v,m,f){
if(v !== undefined){
var str = "You can now process with this given information:<br />";
diff --git a/src/demos/select_filter.html b/src/demos/select_filter.html
index 2f45497..3f5c11c 100644
--- a/src/demos/select_filter.html
+++ b/src/demos/select_filter.html
@@ -51,7 +51,7 @@
e.preventDefault();
- var imp = $.prompt.open(html, {
+ var imp = $.prompt(html, {
title: 'Search Options',
buttons: { Ok:true,Cancel:false },
submit: function(e,v,m,f){
@@ -61,20 +61,20 @@
}
});
- var $so = $('#searchoptions', imp.getPrompt());
+ var $so = $('#searchoptions', imp);
$so.delegate('input', 'click', function(){
$('tr.checked', $so).removeClass('checked');
$(this).parent().parent().addClass('checked');
});
- $('#searchquery', imp.getPrompt()).focus().keydown(function(event){
+ $('#searchquery', imp).focus().keydown(function(event){
var $i = $(this),
query = $i.val(),
re = new RegExp(query,"i"),
html = "",
counter = 0,
- $sos = $('#optionsearchstatus',imp.getPrompt());
+ $sos = $('#optionsearchstatus',imp);
if(event.which == 13 || event.keyCode == 13 && $.trim(query) !== ''){
@@ -98,7 +98,7 @@
$so.find('tbody').html(html);
$so.find('tr:eq(0)').addClass('checked').find('input').attr('checked',true);
- $('#searchoptionswrapper',imp.getPrompt()).slideDown('slow', function(){
+ $('#searchoptionswrapper',imp).slideDown('slow', function(){
$sos.hide();
});
diff --git a/src/demos/survey.html b/src/demos/survey.html
index f249661..d4f8c3f 100644
--- a/src/demos/survey.html
+++ b/src/demos/survey.html
@@ -78,7 +78,7 @@
}
}
- $.prompt.open(temp,{
+ $.prompt(temp,{
close: function(e,v,m,f){
if(v !== undefined){
var str = "You can now process with this given information:<br />";
diff --git a/src/demos/twitter_bootstrap.html b/src/demos/twitter_bootstrap.html
index d595445..eca1583 100644
--- a/src/demos/twitter_bootstrap.html
+++ b/src/demos/twitter_bootstrap.html
@@ -88,7 +88,7 @@
}
}
- $.prompt.open(temp,{
+ $.prompt(temp,{
close: function(e,v,m,f){
if(v !== undefined){
var str = "You can now process with this given information:<br />";
diff --git a/src/demos/user_manager.html b/src/demos/user_manager.html
index 0201617..d23a660 100644
--- a/src/demos/user_manager.html
+++ b/src/demos/user_manager.html
@@ -37,7 +37,7 @@
'<div class="field"><label for="editfname">First Name</label><input type="text" id="editfname" name="editfname" value="'+ fname +'" /></div>'+
'<div class="field"><label for="editlname">Last Name</label><input type="text" id="editlname" name="editlname" value="'+ lname +'" /></div>';
- $.prompt.open(txt,{
+ $.prompt(txt,{
buttons:{Change:true, Cancel:false},
submit: function(e,v,m,f){
//this is simple pre submit validation, the submit function