summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrevati_gawas2019-02-05 14:42:55 (GMT)
committerRenato Gonçalves H2019-02-05 14:42:55 (GMT)
commit693aabdbaee34d85e99ffc23d529a63cb24c9109 (patch)
tree367dd86ed50187af7efc8a584994723eb7ae7853
parent1f104baa9e1bf4327f293dacd125c58a34981103 (diff)
Issue #2904785 by revati_gawas, ccarlson, rsmylski, bserem, madhavimalgaonkar, RenatoG: Mobile Detection doesn't disable colorbox on mobileHEAD8.x-1.x
-rw-r--r--js/colorbox.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/colorbox.js b/js/colorbox.js
index a8c4c87..1ed6550 100644
--- a/js/colorbox.js
+++ b/js/colorbox.js
@@ -12,6 +12,7 @@
// Disable Colorbox for small screens.
var mq = window.matchMedia('(max-device-width: ' + settings.colorbox.mobiledevicewidth + ')');
if (mq.matches) {
+ $.colorbox.remove();
return;
}
}