Skip to content

Commit

Permalink
Fixed confirm extension when no element is passed
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtech-dobes committed Jul 6, 2013
1 parent 9a27bc2 commit 9a5e626
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extensions/confirm.ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

$.nette.ext({
before: function (xhr, settings) {
if (!settings.nette) {
return;
}

var question = settings.nette.el.data('confirm');
if (question) {
return confirm(question);
Expand Down

0 comments on commit 9a5e626

Please sign in to comment.