Skip to content

Commit

Permalink
Improved appearance of confirmation dialogs
Browse files Browse the repository at this point in the history
  • Loading branch information
dbunskoek committed Jun 24, 2012
1 parent 320f07b commit cf8961a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions fiber/static/fiber/css/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,10 @@ span.nobr {
line-height: 150%;
}

.ui-dialog .ui-dialog-content.dialog p strong {
font-weight: bold;
}

/* ---[ Custom Forms ]--- */

.df-admin #contentitem_form {
Expand Down
6 changes: 3 additions & 3 deletions fiber/static/fiber/js/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -1590,7 +1590,7 @@ var adminPage = {

contextmenu.append(
$('<li><a href="#">'+gettext('Delete')+'</a></li>').click(function() {
var confirmationDialog = $('<div></div>').dialog({
var confirmation_dialog = $('<div class="dialog"></div>').dialog({
modal: true,
resizable: false,
width: 400,
Expand Down Expand Up @@ -1621,8 +1621,8 @@ var adminPage = {
}
}
});
confirmationDialog.dialog('option', 'title', gettext('Are you sure?'));
confirmationDialog.html(gettext('<p>Are you sure you want to delete this item?</p>'));
confirmation_dialog.dialog('option', 'title', gettext('Are you sure?'));
confirmation_dialog.html(gettext('<p>Are you sure you want to delete this item?</p>'));
})
);
if (node.used_on_pages && node.used_on_pages.length >= 1) {
Expand Down

0 comments on commit cf8961a

Please sign in to comment.