Skip to content

Commit

Permalink
[#2808] Centre the confirm action dialog vertically
Browse files Browse the repository at this point in the history
  • Loading branch information
aron committed Aug 14, 2012
1 parent 848bb75 commit 97d92ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ckan/public/base/javascript/modules/confirm-action.js
Expand Up @@ -48,6 +48,9 @@ this.ckan.module('confirm-action', function (jQuery, _) {
confirm: function () {
this.sandbox.body.append(this.createModal());
this.modal.modal('show');

// Center the modal in the middle of the screen.
this.modal.css('margin-top', this.modal.height() * -0.5);
},

/* Performs the action for the current item.
Expand Down

0 comments on commit 97d92ba

Please sign in to comment.