Difference between revisions of "Template:SKLMT-China/footer"

Line 331: Line 331:
 
var alt = $(this).attr("alt");
 
var alt = $(this).attr("alt");
 
var $span = $(this).parent('.image');
 
var $span = $(this).parent('.image');
if(alt != '') {
+
if(alt != undefined && alt != "") {
 
$span.append('<div class="alt">' + alt + '</div>');
 
$span.append('<div class="alt">' + alt + '</div>');
 
}
 
}

Revision as of 13:54, 17 October 2018