Opened 10 years ago

Closed 10 years ago

Last modified 8 years ago

#5914 closed enhancement (wontfix)

dialog should get its buttons from the DOM

Reported by: keturn Owned by:
Priority: minor Milestone:
Component: ui.dialog Version: 1.8.3
Keywords: Cc:
Blocked by: Blocking:

Description

The content of a dialog comes from the DOM, and its title comes from an attribute in the DOM, but the buttons and their labels are passed in separate javascript options. This takes some of my content out of my template and puts it in multiple places.

Instead, dialog should look for button elements (perhaps with a particular class), relocate or style them as necessary to match the theme, and provide a convenient method to bind callbacks for them.

Change History (2)

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

Resolution: wontfix
Status: newclosed

Providing a convenient method to bind callbacks to already existing plugins would likely be more hassle than it's worth.

comment:2 Changed 8 years ago by Scott González

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.