Skip to content

dialogExtend maximize by default? #21

@ryannz

Description

@ryannz

Hello everyone, I am new to this forum. So please bear with me here. I have this code:

function dialogPopup(table) {
var dialogOptions = {
"title": "This is a test",
"width": 'auto',
"height": 200,
"position": 'top',
"resizable": false,
"draggable": true,
"modal": false,
"close": function () {
if (last[0] != this) {
$(this).remove();
}
}

};

// dialog-extend options
var dialogExtendOptions = {
    "closable": true,
    "maximizable": true,
    "dblclick": "maximize" || false,

};

last=$(table).dialog(dialogOptions).dialogExtend(dialogExtendOptions);
last.dialogExtend('maximize'); 

}

I would like to maximize the dialogue by default when it's opened. It seemed to work fine when I don't change the debug mode to "false" in the web.config file. However, when I changed it to false, the maximize worked only for the first time. The second time the dialogue appeared, it didn't maximize anymore. I think it is because of the minified version of the dialogextend.js.min. If I excluded that file from the project, it is working fine. There must be some line in the minified version that is causing this. Anyone else have this problem?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions