I'm trying to fill the background of a dialog but without success.
As per picture I am getting transparency.
The CSS I have is:
.ui-dialog {
background-color: #e1e1e1;
}
.ui-dialog .ui-dialog-content {
background-color: #e1e1e1;
}
But without success.
I am overriding the alert()
function so I can use the alert()
from any part of my scripts:
window.alert = function (message, callback) {
$('<div />').text(message).dialog({
modal:true,
title:'DDB',
dialogClass: 'alert',
show: {
effect: "scale",
duration: 200
},
hide: {
effect: "explode",
duration: 300
},
buttons: {
'OK':function(){
$(this).dialog('close');
callback();
}
},
position: {
my: 'center bottom',
at: 'center bottom-30%',
//of: $("#mainspace"),
},
close:function(){ $(this).dialog('destroy').remove(); }
});
}