Commit 41d33d09 authored by frjo's avatar frjo
Browse files

Make urlParam return empty instead of 0.

parent d0c1567d
......@@ -9,8 +9,8 @@ Drupal.behaviors.initColorboxInline = {
else {
var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(url);
}
if (!results) { return 0; }
return results[1] || 0;
if (!results) { return ''; }
return results[1] || '';
};
$('a, area, input', context).filter('.colorbox-inline').once('init-colorbox-inline-processed').colorbox({
transition:settings.colorbox.transition,
......
......@@ -4,8 +4,8 @@ Drupal.behaviors.initColorboxLoad = {
attach: function (context, settings) {
$.urlParam = function(name, url){
var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(url);
if (!results) { return 0; }
return results[1] || 0;
if (!results) { return ''; }
return results[1] || '';
};
$('a, area, input', context).filter('.colorbox-load').once('init-colorbox-load-processed').colorbox({
transition:settings.colorbox.transition,
......
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