jquery-dialogextend icon indicating copy to clipboard operation
jquery-dialogextend copied to clipboard

dialogExtend maximize by default?

Open ryannz opened this issue 11 years ago • 2 comments

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.

ryannz avatar Mar 03 '15 11:03 ryannz

Can you post your code example to jsfiddle, or similar resource?

ROMB avatar Mar 09 '15 15:03 ROMB

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

ryannz avatar Mar 11 '15 10:03 ryannz