Hello Jeremy,
I downloaded your dba module today and found it to be a great module.
Thank you for all your hard work on it.
I was playing around with it today and added functionality for doing a "Select All/Clear All" on the overview page to make it easier when someone wants to do a full database backup.
I thought you might want to take a look at it.
I was forced to use an attachment due to some security issue with displaying the code in Drupal.
See the attached file.
One thing though. In order to make it work I had to use a static value for each checkbox element name, as opposed to using the $table variable that you had.
If that is an issue please let me know, and I'll see if I can find a way to resolve that.
Thanks.
-Varr
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | check_clear_all.patch | 1.5 KB | varr |
| #1 | Check_uncheck_0.doc | 6.06 KB | varr |
| Check_uncheck.doc | 5.92 KB | varr |
Comments
Comment #1
varr commentedOk, so yes, replacing the element names with 'table' instead of $table, did in fact make a difference.
So I modified the code and now it works.
The modified code is in the attachment.
-Varr
Comment #2
jeremy commentedPlease resubmit as a patch (which should still be attached), not an rtf document. Then I will review what you have done.
Comment #3
robertdouglass commentedcan somebody turn this into a patch please? The code looks solid enough and it is a nice feature.
Comment #4
varr commentedI finally got around to creating a patch for the check/clear all functionality.
Hope this helps.
-Varr
Comment #5
jeremy commentedSimple enough, although I couldn't get the patch to apply. (I finally did some cut and paste to test it out.) It works fine, however:
- the links should be added via dba_menu() as subtabs, they're hard to find at the bottom of the page.
- the names of the links should be lower case, to conform with all other links.
Comment #6
jeremy commentedI'm not sure you can make javascript subtabs from _menu(). Made minor changes, and applied the patch.
Thanks!
Comment #7
(not verified) commentedComment #8
(not verified) commentedComment #9
(not verified) commentedComment #10
(not verified) commentedComment #11
jeremy commentedManually closing, the project module doesn't seem to do this automatically anymore.