jQuery UI dialog background

75 views Asked by At

I'm trying to fill the background of a dialog but without success.

As per picture I am getting transparency.

enter image description here

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(); }
    });
}
0

There are 0 answers