Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dialogExtend maximize by default? #21

Open
ryannz opened this issue Mar 3, 2015 · 2 comments
Open

dialogExtend maximize by default? #21

ryannz opened this issue Mar 3, 2015 · 2 comments

Comments

@ryannz
Copy link

ryannz commented Mar 3, 2015

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.

@ROMB
Copy link
Owner

ROMB commented Mar 9, 2015

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

@ryannz
Copy link
Author

ryannz commented Mar 11, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants