Skip to main content

Search and Top Navigation

#6803 closed bug (worksforme)

Opened January 04, 2011 06:37PM UTC

Closed January 04, 2011 08:06PM UTC

Cannot set Modal after init()

Reported by: OBCENEIKON Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.dialog Version: 1.8.7
Keywords: Cc:
Blocked by: Blocking:
Description

After creating a dialog, you cannot make it a modal using a setter once its been initialized.

jQuery Version: 1.4.4

Browser: Firefox 3.6.6

Platform: Ubuntu 10.04 - 2.6.32-22-generic

Reproduction: http://jsfiddle.net/yweEx/

Expectation: The dialog should be a modal, however; its not.

<script type="text/javacsript">
$(document).ready(function() {
    $('#dialog').dialog();
    $('#dialog').dialog('option', 'modal', true);
});
</script>
<div id="dialog" title="Modal Test">This should be a modal dialog</div>
Attachments (0)
Change History (1)

Changed January 04, 2011 08:06PM UTC by scottgonzalez comment:1

resolution: → worksforme
status: newclosed

You can change the modal option, it just won't affect the dialog while it's open. It would be very strange to have a non-modal dialog suddenly become modal.