Skip to content

Node.js based forum software built for the modern web

create tooltips for users on widgets

barisusaklie6c079406123
diff --git a/public/src/widgets.js b/public/src/widgets.js
index fea7814c9d..990a42c6f0 100644
--- a/public/src/widgets.js
+++ b/public/src/widgets.js
@@ -68,11 +68,16 @@
ajaxify.widgets.reposition(location);
}
}
-
+
var widgetAreas = $('#content [widget-area]');
widgetAreas.find('img:not(.user-img)').addClass('img-responsive');
widgetAreas.find('span.timeago').timeago();
-
+ widgetAreas.find('img[title].teaser-pic,img[title].user-img').each(function() {
+ $(this).tooltip({
+ placement: 'top',
+ title: $(this).attr('title')
+ });
+ });
$(window).trigger('action:widgets.loaded', {});
if (typeof callback === 'function') {