Dialogs and menus leave a lot of clutter in the DOM #121

Closed
opened 2011-11-01 12:31:58 +00:00 by rlx · 3 comments
Owner

Every dialog that's ever opened stays in the DOM. Reopening it adds another one. Also, opening a dialog or menu adds a layer to the DOM.

Every dialog that's ever opened stays in the DOM. Reopening it adds another one. Also, opening a dialog or menu adds a layer to the DOM.
rlx added the
frontend
label 2011-11-01 12:31:58 +00:00
rlx added this to the 11.12 milestone 2011-11-01 12:31:58 +00:00
rlx self-assigned this 2011-11-01 12:31:58 +00:00
rlx added the
major
defect
labels 2011-11-01 12:31:58 +00:00
Author
Owner

For most dialogs, a solution would be to change the idiom from

pandora.$ui.placesDialog = pandora.ui.placesDialog().open();

to

(pandora.$ui.placesDialog || (pandora.$ui.placesDialog = pandora.ui.placesDialog())).open();

This would reopen the dialog in the exact same state.

This won't work for the account dialog, which has to load in a specific state.

For most dialogs, a solution would be to change the idiom from `pandora.$ui.placesDialog = pandora.ui.placesDialog().open();` to `(pandora.$ui.placesDialog || (pandora.$ui.placesDialog = pandora.ui.placesDialog())).open();` This would reopen the dialog in the exact same state. This won't work for the account dialog, which has to load in a specific state.
Author
Owner

Layers have been fixed

Layers have been fixed
Author
Owner

The "removeOnClose" option takes care of this.

The "removeOnClose" option takes care of this.
rlx added the
fixed
label 2012-02-01 14:43:44 +00:00
rlx closed this issue 2012-02-01 14:43:44 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: 0x2620/pandora#121
No description provided.