Modify ↓
Ticket #1990 (closed bug: duplicate)
Can not have multiple dialogs in latest version of UI
| Reported by: | rbrackett | Owned by: | rworth |
|---|---|---|---|
| Priority: | major | Milestone: | 1.2.2 |
| Component: | ui | Version: | 1.2.1 |
| Keywords: | dialog | Cc: | |
| Blocking: | Blocked by: |
Description
In fixing Ticket #1684, the ability to have multiple dialogs was lost. They 'new' keyword is no longer being used to create dialog objects and thus all dialogs are sharing the same data. As an example, if I create two dialogs, dialog1 and dialog2, and then call dialog1.dialogOpen();, dialog2 gets opened. This is an easy fix: just add the 'new' keyword to line 12 of ui.dialog.js.
I've included a patch for convenience.
Attachments
Change History
Changed 5 years ago by rbrackett
-
attachment
multipleDialogsPatch.diff
added
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Fix to let multiple dialogs work again in UI