* Creates the confirmation dialog on first use.
*/
_createDialog: function() {
- this._dialog = $('<div id="wcfSystemConfirmation" class="wcf-systemConfirmation"><p></p></div>').hide().appendTo(document.body);
- var $formButtons = $('<div class="wcf-formSubmit" />').appendTo(this._dialog);
+ this._dialog = $('<div id="wcfSystemConfirmation" class="systemConfirmation"><p></p></div>').hide().appendTo(document.body);
+ var $formButtons = $('<div class="formSubmit" />').appendTo(this._dialog);
+ $('<button class="buttonPrimary">' + WCF.Language.get('wcf.global.confirmation.confirm') + '</button>').data('action', 'confirm').click($.proxy(this._click, this)).appendTo($formButtons);
$('<button>' + WCF.Language.get('wcf.global.confirmation.cancel') + '</button>').data('action', 'cancel').click($.proxy(this._click, this)).appendTo($formButtons);
- $('<button class="default">' + WCF.Language.get('wcf.global.confirmation.confirm') + '</button>').data('action', 'confirm').click($.proxy(this._click, this)).appendTo($formButtons);
},
/**
* Tries to set focus on confirm button.
*/
_show: function() {
- this._dialog.find('button:eq(0)').blur().focus();
+ this._dialog.find('button.buttonPrimary').blur().focus();
}
};
.textShadow(@wcfPageBackgroundColor);
}
}
-
- /*dl {
- > .reversed {
- left: 170px;
- width: auto;
- }
-
- > dd {
- margin-left: 150px;
- }
-
- > dt {
- width: 130px;
- }
- }*/
}
.dialogTitlebar {
.dialogContent {
background-color: rgba(51, 51, 51, .9);
- color: lighten(@wcfLabelColor, 10%);
+ color: @wcfDialogColor;
overflow: auto;
padding: 10px 20px 20px;
img {
margin-bottom: @wcfGapSmall;
}
+}
+
+.systemConfirmation p {
+ padding-top: @wcfGapSmall;
}
\ No newline at end of file
@wcfDimmedColor: lighten(@wcfColor, 15%);
@wcfLabelColor: @wcfLinkColor;
@wcfHeadlineColor: @wcfColor;
+@wcfDialogColor: lighten(@wcfLinkColor, 20%);
/* font */
@wcfBaseFontSize: 13px;