Skip to content

Commit

Permalink
Merge pull request simsalabim#77 from s7anley/bug/ajax-forms
Browse files Browse the repository at this point in the history
Ajax loaded forms are reinit after being released
  • Loading branch information
simsalabim committed Sep 22, 2013
2 parents 91f871b + 2d8e678 commit 3ad0f9a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sisyphus",
"main": "sisyphus.js",
"version": "1.1.104",
"version": "1.1.105",
"homepage": "http://sisyphus-js.herokuapp.com/",
"authors": [
"Alexander Kaupanin <kaupanin@gmail.com>"
Expand Down
2 changes: 2 additions & 0 deletions sisyphus.js
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,8 @@
*/
bindReleaseData: function() {
var self = this;
// Released form, are not started anymore. Fix for ajax loaded forms.
params.started[ self.getInstanceIdentifier() ] = false;
self.targets.each( function( i ) {
var target = $( this );
var fieldsToProtect = target.find( ":input" ).not( ":submit" ).not( ":reset" ).not( ":button" ).not( ":file" ).not( ":password" );
Expand Down
2 changes: 1 addition & 1 deletion sisyphus.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3ad0f9a

Please sign in to comment.