nodebb-plugin-gallery-view
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "nodebb-plugin-gallery-view", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "A Plugin that Shows randomly placed images in a proper carousel based modal", | ||
@@ -5,0 +5,0 @@ "main": "public/js/main.js", |
@@ -8,7 +8,7 @@ (function($) { | ||
$(window).on('action:ajaxify.end', function() { | ||
setTimeout(initialize, 100); | ||
setTimeout(initialize, 500); | ||
}); | ||
$(window).on('action:topic.loaded', function() { | ||
setTimeout(initialize, 100); | ||
setTimeout(initialize, 500); | ||
}); | ||
@@ -22,3 +22,3 @@ | ||
}); | ||
img.addClass('thumbnail').parent().on('click', 'a', function(event){ | ||
img.addClass('thumbnail').parent().on('click', function(event){ | ||
if ($(this).children('img').length > 0) { | ||
@@ -48,6 +48,6 @@ event.preventDefault(); | ||
elem.each(function(key, e) { | ||
var source = $(e).attr('data-src'); | ||
var source = $(e).attr('src'); | ||
var item = $('<div></div>').addClass('item').append( | ||
$('<img />').prop('src', source) | ||
); | ||
$('<img></img>').prop('src', source).attr('src', source) | ||
); | ||
if(key === 0) { item.addClass('active'); } | ||
@@ -54,0 +54,0 @@ imgarr.append(item); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
380925