diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-12-02 07:28:22 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-12-02 07:28:22 +0000 |
commit | c912008307dd49b5e3e85c78069153f2f9f70411 (patch) | |
tree | 6e219858505bd38130a7d679488d3a41e689ce1d /modules/toolbar/toolbar.js | |
parent | cfc96df9a7181526cb1c71cf4e39886026c668fe (diff) | |
download | brdo-c912008307dd49b5e3e85c78069153f2f9f70411.tar.gz brdo-c912008307dd49b5e3e85c78069153f2f9f70411.tar.bz2 |
#610234 by Gábor Hojtsy, ksenzee, cwgordon7, David_Rothstein, seutje, marcvangend, sun, JoshuaRogers, markus_petrux, Bojhan, Rob Loach, Everett Zufelt, drifter, markboulton, leisareichelt, et al: Added Overlay module to core, which shows administrative pages in a JS overlay, retaining context on the front-end site.
Diffstat (limited to 'modules/toolbar/toolbar.js')
-rw-r--r-- | modules/toolbar/toolbar.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/toolbar/toolbar.js b/modules/toolbar/toolbar.js index 9c07f78bd..18b366102 100644 --- a/modules/toolbar/toolbar.js +++ b/modules/toolbar/toolbar.js @@ -15,6 +15,16 @@ Drupal.behaviors.admin = { Drupal.admin.toolbar.toggle(); return false; }); + + // Set the most recently clicked item as active. + $('#toolbar a').once().click(function() { + $('#toolbar a').each(function() { + $(this).removeClass('active'); + }); + if ($(this).parents('div.toolbar-shortcuts').length) { + $(this).addClass('active'); + } + }); } }; |