Skip to content

Dialog: Add the possibility to set dialog("option", "zIndex", 3999) #313

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

Closed
wants to merge 12 commits into from

Conversation

PaulUithol
Copy link

Add the possibility to use '$( ".selector" ).dialog( "option", "zIndex", 3999 );', as noted explicitly in the docs on http://jqueryui.com/demos/dialog/ :

Get or set the zIndex option, after init.

//getter
var zIndex = $( ".selector" ).dialog( "option", "zIndex" );
//setter
$( ".selector" ).dialog( "option", "zIndex", 3999 );

Also added some tests. I'd say this ticket is applicable: http://bugs.jqueryui.com/ticket/4975 .

@@ -595,6 +595,22 @@ $.widget("ui.dialog", {
$( ".ui-dialog-title", self.uiDialogTitlebar )
.html( "" + ( value || " " ) );
break;
case "zIndex":
if ( value > $.ui.dialog.maxZ ) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this maxZ should only be set when the dialog is currently displayed

@PaulUithol
Copy link
Author

Okay, I can easily fix that of course. Can you merge this update when I do?

Edit: alright, done and rebased; is it okay like this?

@jzaefferer jzaefferer mentioned this pull request Oct 23, 2012
@jzaefferer
Copy link
Member

Don't need this anymore since 3829a37 landed.

@jzaefferer jzaefferer closed this Oct 24, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants