Search and Top Navigation
#5914 closed enhancement (wontfix)
Opened August 09, 2010 04:20PM UTC
Closed August 09, 2010 06:02PM UTC
Last modified October 11, 2012 09:15PM UTC
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.
Providing a convenient method to bind callbacks to already existing plugins would likely be more hassle than it's worth.