Commit b8537230 authored by frjo's avatar frjo
Browse files

Define variable in colorbox.js.

parent ce90f5dc
......@@ -8,7 +8,7 @@ Drupal.behaviors.initColorbox = {
if (settings.colorbox.mobiledetect && window.matchMedia) {
// Disable Colorbox for small screens.
mq = window.matchMedia("(max-device-width: " + settings.colorbox.mobiledevicewidth + ")");
var mq = window.matchMedia("(max-device-width: " + settings.colorbox.mobiledevicewidth + ")");
if (mq.matches) {
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment