Skip to content

Commit

Permalink
Merge pull request web2py#1507 from vinyldarkscratch/master
Browse files Browse the repository at this point in the history
Fire event after web2py component completed (Enhancement)
  • Loading branch information
mdipierro authored Oct 22, 2016
2 parents 77dfec9 + 7615848 commit 6d38aa7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions applications/admin/static/js/web2py.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@
web2py.trap_form(action, target);
web2py.ajax_init('#' + target);
web2py.after_ajax(xhr);
web2py.fire(element, 'w2p:componentComplete', [xhr, status], target); // Let us know the component is finished loading
}
});
}
Expand Down
1 change: 1 addition & 0 deletions applications/examples/static/js/web2py.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@
web2py.trap_form(action, target);
web2py.ajax_init('#' + target);
web2py.after_ajax(xhr);
web2py.fire(element, 'w2p:componentComplete', [xhr, status], target); // Let us know the component is finished loading
}
});
}
Expand Down
1 change: 1 addition & 0 deletions applications/welcome/static/js/web2py.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@
web2py.trap_form(action, target);
web2py.ajax_init('#' + target);
web2py.after_ajax(xhr);
web2py.fire(element, 'w2p:componentComplete', [xhr, status], target); // Let us know the component is finished loading
}
});
}
Expand Down

0 comments on commit 6d38aa7

Please sign in to comment.