From 72390fc360467d986452643cc7a10f5243b00298 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?"J.=20Rene=CC=81e=20Beach"?= Date: Fri, 19 Oct 2012 11:19:08 -0400 Subject: [PATCH] Testing patch. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: J. Renée Beach --- core/modules/toolbar/toolbar.js | 2 ++ core/modules/toolbar/toolbar.module | 1 + 2 files changed, 3 insertions(+) diff --git a/core/modules/toolbar/toolbar.js b/core/modules/toolbar/toolbar.js index 2353050..5ff3861 100644 --- a/core/modules/toolbar/toolbar.js +++ b/core/modules/toolbar/toolbar.js @@ -25,6 +25,8 @@ Drupal.behaviors.toolbar = { $(window).triggerHandler('resize'); }); } + matchMedia('screen and (min-width: 28em)').addListener(function (mql) {console.log(mql);console.log(mql.media + ': ' + mql.matches)}); + matchMedia('screen and (max-width: 28em)').addListener(function (mql) {console.log(mql.media + ': ' + mql.matches)}); } }; diff --git a/core/modules/toolbar/toolbar.module b/core/modules/toolbar/toolbar.module index 3717d7b..e9a14fd 100644 --- a/core/modules/toolbar/toolbar.module +++ b/core/modules/toolbar/toolbar.module @@ -371,6 +371,7 @@ function toolbar_library_info() { drupal_get_path('module', 'toolbar') . '/toolbar.css', ), 'dependencies' => array( + array('system', 'matchMedia'), array('system', 'jquery'), array('system', 'drupal'), array('system', 'drupalSettings'), -- 1.7.10.4