Toolbar.js is using the Drupal.admin namespace. No other module uses this, nor should toolbar. It can use some more cleaning but lets review this one first to keep things simple.
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | toolbar-remove-admin.patch | 1.12 KB | jide |
| #7 | toolbar-remove-admin_686670_7.patch | 3.64 KB | mfer |
| #5 | toolbar-remove-admin_686670_5.patch | 3.64 KB | seutje |
| #1 | toolbar-remove-admin_686670_1.patch | 3.3 KB | mfer |
| toolbarcleanup.patch | 3.43 KB | casey |
Comments
Comment #1
mfer commentedThe patch was almost there but Drupal.behaviors.admin should be Drupal.behaviors.toolbar. Using the admin on the end is a namespace mismatch. The attached patch changes that as well.
Comment #2
mfer commentedAlso note, the deeper something is nested in JavaScript the slower it is. By removing the extra layer of referencing there is an ever so small performance improvement.
Comment #3
seutje commentedlooks like u got em all in the code, but shouldn't u also change the comments?
Comment #4
sunComment #5
seutje commentedchanged comments
Comment #6
sunThis should either state what the behavior is actually doing, or it simply needs to go. The former is preferred ;)
Powered by Dreditor.
Comment #7
mfer commentedUpdated the patch per Suns comments.
Comment #8
sunThanks, looks good now - didn't test though. (hope you did ;)
Comment #9
mfer commentedI did test it... works :)
Comment #10
seutje commentedyay \o/
Comment #11
webchickThanks. This is probably leftover from when yhahn made a Drupal 7 patch from Admin module.
Committed to HEAD.
Comment #12
jide commentedThere are some more strings to be changed in toolbar.module.
Correcting these fixes sticky tables.
Comment #13
sunComment #14
dries commentedCommitted to CVS HEAD. Thanks!