From e6c079406123d53040053803c595f20e2fd23c8d Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 12 Mar 2015 17:46:49 -0400 Subject: [PATCH] create tooltips for users on widgets --- public/src/widgets.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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') {