summaryrefslogtreecommitdiff
path: root/modules/toolbar
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-06 04:03:39 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-06 04:03:39 +0000
commit9a79135333aa3017d77546edc6645d1ff490c762 (patch)
treeac7fb5a44ccb3bc8582e35fd5a815765ce1aafed /modules/toolbar
parentdb4fa95f375627a309a97bf468a2eb44ebd2d4b8 (diff)
downloadbrdo-9a79135333aa3017d77546edc6645d1ff490c762.tar.gz
brdo-9a79135333aa3017d77546edc6645d1ff490c762.tar.bz2
#668104 by casey and David_Rothstein: Make overlay respect other click handlers.
Diffstat (limited to 'modules/toolbar')
-rw-r--r--modules/toolbar/toolbar.js15
1 files changed, 4 insertions, 11 deletions
diff --git a/modules/toolbar/toolbar.js b/modules/toolbar/toolbar.js
index be69b4a71..061ef7ac6 100644
--- a/modules/toolbar/toolbar.js
+++ b/modules/toolbar/toolbar.js
@@ -11,20 +11,13 @@ Drupal.behaviors.admin = {
$('#toolbar', context).once('toolbar', Drupal.admin.toolbar.init);
// Toggling toolbar drawer.
- $('#toolbar a.toggle', context).once('toolbar-toggle').click(function() {
+ $('#toolbar a.toggle', context).once('toolbar-toggle').click(function(e) {
Drupal.admin.toolbar.toggle();
+ // As the toolbar is an overlay displaced region, overlay should be
+ // notified of it's height change to adapt its position.
+ $(window).triggerHandler('resize.overlay-event');
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');
- }
- });
}
};