Takes advantage of some of the stuff in Drupal 7:
- AJAX Framework
- hook_page_alter
- hook_library
- jQuery Once
- jQuery UI in core
Developer notes:
- Wanted to try it out without needing the additional menu callbacks to make things a tad bit easier. You can still use hook_ajax_render_alter() to change how the dialog react as demonstrated with the random size changes for the Simple Test link. The good thing about this is that it now acts like the Overlay out of the box :-P .
- It only acts on links right now. Has to also process buttons for confirm_form() when you click on the Delete buttons and stuff.
- It doesn't move the buttons from the form into the dialog yet.
- I left in a bunch of your old code (dialog2.js vs dialog.js) as I'm sure we'll want to adapt it in. Like the button stuff.
| Comment | File | Size | Author |
|---|---|---|---|
| dialog7.patch | 18.76 KB | robloach |
Comments
Comment #1
robloachI also put the branch up here:
http://drupalcode.org/viewvc/drupal/contributions/sandbox/robloach/modul...
Comment #2
robloachSome things missing from the core AJAX Framework that would help this:
Comment #3
neclimdulhot stuff!
Comment #4
robloachhttp://head.robloach.net/dialog/example
http://drupalcode.org/viewvc/drupal/contributions/modules/dialog/
It now uses xLazyLoader to load up the additional CSS and JavaScript. Doesn't seem to work when the JavaScript is aggregated though :-( .
Comment #5
zroger commentedI created the 6.x branch and committed this to head.
I'm marking this as fixed. lets open new issues for specific drupal 7 issues.
thx Rob.