From b6c1045b63753367e3d076d5af6c8e6cd57eb4ea Mon Sep 17 00:00:00 2001 From: Johan Cwiklinski Date: Wed, 27 Nov 2019 07:23:42 +0100 Subject: [PATCH] Fix some tooltips; refs #1367 --- galette/webroot/js/common.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/galette/webroot/js/common.js b/galette/webroot/js/common.js index 7d1782107..a3e585c83 100644 --- a/galette/webroot/js/common.js +++ b/galette/webroot/js/common.js @@ -165,14 +165,6 @@ var _initTooltips = function(selector) { _content = _next.html(); } - //second, value from @title - if (typeof _content == 'undefined') { - var _title = _this.attr('title'); - if (typeof _title != 'undefined') { - _content = _title; - } - } - //and finally, value from @class=sr-only element if (typeof _content == 'undefined') { var _sronly = _this.find('.sr-only'); @@ -181,6 +173,14 @@ var _initTooltips = function(selector) { } } + //second, value from @title + if (typeof _content == 'undefined') { + var _title = _this.attr('title'); + if (typeof _title != 'undefined') { + _content = _title; + } + } + return _content; } }); -- 2.39.2