dialogExtend maximize by default?
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.
Can you post your code example to jsfiddle, or similar resource?
Thank you for getting back to me. Here is the jsbin link: http://jsbin.com/binezodoqo/edit?html,js,output
I have maximize the dialog by default. However, I could not find the place where I can change the file to use dialogextend.js.min.
Regards