Opened 9 years ago

Closed 9 years ago

#6803 closed bug (worksforme)

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>

Change History (1)

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

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.

Note: See TracTickets for help on using tickets.