Skip to content

Commit

Permalink
Revert "bugfix. fix 'multi line confirmation' not display"
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgaspar committed Mar 24, 2015
1 parent 66a61f5 commit 2433da2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions flask_appbuilder/static/appbuilder/js/ab_actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,23 @@ var AdminActions = function() {
return false;
}

if ( confirm(confirmation) ) {
if (!!confirmation) {
$('#modal-confirm').modal('show');
}
else {
form_submit();
}

};

this.execute_single = function(url, confirmation) {
single = true;
action_url = url;
action_confirmation = confirmation;

if ( confirm(confirmation) ) {
if (!!confirmation) {
$('#modal-confirm').modal('show');
}
else {
window.location.href = action_url;
}
};
Expand Down

0 comments on commit 2433da2

Please sign in to comment.