Bureaucrats, coding, Administrators
2,633
edits
m (+) |
mNo edit summary |
||
Line 527: | Line 527: | ||
var caption = thumb.children('.thumbcaption'); | var caption = thumb.children('.thumbcaption'); | ||
if(caption.length) { | if(caption.length) { | ||
$(this).attr('data-title', '<p>' + caption.html() + '</p>' + $(this).attr('data-title')); | $(this).attr('data-title', '<p>' + caption.html().replace(/<div[^<>]*class="magnify"[^<>]*>[\s\S]*<\/div>/i, '').replace(/^\s+|\s+$/g, '') + '</p>' + $(this).attr('data-title')); | ||
} | } | ||
} | } |