Skip to content
This repository was archived by the owner on Jul 19, 2018. It is now read-only.

Commit 70d6637

Browse files
author
fritzmg
committed
fixed an issue when data-lightbox parameter only consists of numbers
1 parent 1021d0b commit 70d6637

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/modules/magnific_popup/assets/init-magnific-popup.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function initMagnificPopup( options )
3737
var $group = $('a[data-lightbox="'+group+'"]');
3838

3939
// parse the group name
40-
var names = group.split(' ');
40+
var names = group.toString().split(' ');
4141
var width = null;
4242
var height = null;
4343
$.each( names, function( index, name )

0 commit comments

Comments
 (0)