Opened 11 years ago
Closed 11 years ago
#8343 closed bug (fixed)
_createButtons removes all elements with .ui-dialog-buttonpane class
Reported by: | AlexW | Owned by: | AlexW |
---|---|---|---|
Priority: | minor | Milestone: | 1.9.0 |
Component: | ui.dialog | Version: | 1.8.20 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When trying to use the .ui-dialog-buttonpane class within a dialog it will be removed.
Suggested fix, Only search direct children.
_createButtons: function(buttons) { ... self.uiDialog.find('>.ui-dialog-buttonpane').remove(); ... }
Change History (4)
comment:1 follow-up: 2 Changed 11 years ago by
Owner: | set to AlexW |
---|---|
Status: | new → pending |
comment:2 Changed 11 years ago by
Status: | pending → new |
---|
Replying to scott.gonzalez:
Why are you defining your own button pane?
I have some tabs in a dialog. One of the tabs has a form with some buttons so I was just using the UI css to keep things consistent.
comment:4 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Dialog: Only create the button pane once and store a reference to it. Fixes #8343 - _createButtons removes all elements with .ui-dialog-buttonpane class.
Changeset: 286941ef8d325d6c0621eb29714792743871b1a3
Note: See
TracTickets for help on using
tickets.
Why are you defining your own button pane?