Commit 9cd96c46 authored by frjo's avatar frjo
Browse files

Issue #2155657 by alex.designworks, Koen.Pasman, Andrew211, frjo: Uncaught...

Issue #2155657 by alex.designworks, Koen.Pasman, Andrew211, frjo: Uncaught TypeError: Cannot read property 'mobiledetect' of undefined
parent 5187cea0
......@@ -2,7 +2,7 @@
Drupal.behaviors.initColorbox = {
attach: function (context, settings) {
if (!$.isFunction($.colorbox)) {
if (!$.isFunction($.colorbox) || typeof settings.colorbox === 'undefined') {
return;
}
......
......@@ -2,7 +2,7 @@
Drupal.behaviors.initColorboxInline = {
attach: function (context, settings) {
if (!$.isFunction($.colorbox)) {
if (!$.isFunction($.colorbox) || typeof settings.colorbox === 'undefined') {
return;
}
$.urlParam = function(name, url){
......
......@@ -2,7 +2,7 @@
Drupal.behaviors.initColorboxLoad = {
attach: function (context, settings) {
if (!$.isFunction($.colorbox)) {
if (!$.isFunction($.colorbox) || typeof settings.colorbox === 'undefined') {
return;
}
$.urlParams = function (url) {
......
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