From 846fb472ca977b666d5b96833384d85dea5d522f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?"J.=20Rene=CC=81e=20Beach"?= Date: Wed, 17 Oct 2012 15:37:37 -0400 Subject: [PATCH] Quick testing patch. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: J. ReneĢe Beach --- core/modules/toolbar/toolbar.js | 3 +++ core/modules/toolbar/toolbar.module | 1 + 2 files changed, 4 insertions(+) diff --git a/core/modules/toolbar/toolbar.js b/core/modules/toolbar/toolbar.js index 2353050..dd3a320 100644 --- a/core/modules/toolbar/toolbar.js +++ b/core/modules/toolbar/toolbar.js @@ -25,6 +25,9 @@ Drupal.behaviors.toolbar = { $(window).triggerHandler('resize'); }); } + var mqg = new Drupal.MediaQueryGroup('toolbar'); + mqg.add('screen and (min-width: 28em)', function () {console.log('28em')}); + mqg.add('default', function () {console.log('default')}); } }; diff --git a/core/modules/toolbar/toolbar.module b/core/modules/toolbar/toolbar.module index 3717d7b..0e80582 100644 --- a/core/modules/toolbar/toolbar.module +++ b/core/modules/toolbar/toolbar.module @@ -374,6 +374,7 @@ function toolbar_library_info() { array('system', 'jquery'), array('system', 'drupal'), array('system', 'drupalSettings'), + array('system', 'drupal.mediaquerygroup'), array('system', 'jquery.once'), array('system', 'jquery.cookie'), ), -- 1.7.10.4