Opened 7 years ago

Closed 7 years ago

#9659 closed bug (notabug)

Modal dialog - overlay fail in 1.10.3

Reported by: g0G3t4 Owned by: g0G3t4
Priority: minor Milestone: none
Component: ui.dialog Version: 1.10.3
Keywords: Cc:
Blocked by: Blocking:

Description

jQuery UI 1.10.3 jQuery UI 1.10.2 open a modal dialog from a DIV previosly loaded with a POST content.

$('#id').dialog({

title: title, width: width, height: height, modal: true, appendTo: '#' + parent_id

});

Close the dialog with a relative method

$('#id').dialog('close');

called from a button inside dialog or using the X closing button.

reopen the dialog calling:

$('#id').dialog('open');

or

$('#id').dialog("option", "modal", true); $('#id').dialog('open');

the dialog is showed but overlay is hide .

With jQuery UI 1.9.2 all works good.

Change History (6)

comment:1 Changed 7 years ago by Scott González

Component: ui.coreui.dialog
Owner: set to g0G3t4
Status: newpending

Please provide a reduced test case showing this problem. You can use http://jsfiddle.net/QFp2J/13/ as a starting point.

comment:2 in reply to:  1 Changed 7 years ago by g0G3t4

Status: pendingnew

Replying to scott.gonzalez:

Please provide a reduced test case showing this problem. You can use http://jsfiddle.net/QFp2J/13/ as a starting point.

http://jsfiddle.net/QFp2J/25/

I link the UI v. 1.10.3 I can't reproduce the problem because i can't load a local page with method load() but that is my code... i don't think the problem is css because with UI v. 1.9.2 all works good.

comment:3 Changed 7 years ago by Scott González

Status: newpending

You can create another fiddle with the content you want to load and then tack /show on to the URL to get just the results, not the framed editor. You can also use the /echo URLs (See http://doc.jsfiddle.net/use/echo.html for docs).

comment:4 Changed 7 years ago by g0G3t4

Status: pendingnew

Hi Scott, i reproduce the problem

http://jsfiddle.net/QFp2J/32/ & http://jsfiddle.net/QFp2J/33/

I found the error in my code, because the second time i recall the function dialog with again the param 'AppendTo' and not only ".dialog('open')" method because bfirst id declare wrong bfist without r

in version 33 there is only the problem , but with UI 1.9.2 all works good so see you if you want to fix that,

see you and sry for the time lost

have a good day

comment:5 Changed 7 years ago by g0G3t4

Sry again , is possible to verify that if the component that i use for .dialog has just a parent to leave it there and not that UI move it around the DOM?

ty again

comment:6 Changed 7 years ago by Scott González

Resolution: notabug
Status: newclosed

Please use the forums or Stack Overflow for help.

Note: See TracTickets for help on using tickets.