diff --git a/modules/gallery/show.html.erb b/modules/gallery/show.html.erb index 96dbae8..d50c9f5 100644 --- a/modules/gallery/show.html.erb +++ b/modules/gallery/show.html.erb @@ -37,6 +37,13 @@ $img.attr('alt', albumTitle + (index + 1)); } }); + $('.show-pic a').each(function() { + var $a = $(this); + var currentTitle = ($a.attr('title') || '').trim(); + if (currentTitle === 'gallery image' || currentTitle === '') { + $a.removeAttr('title'); + } + }); }, 500); \ No newline at end of file