]> git.agnieray.net Git - galette.git/commitdiff
Fix some tooltips; refs #1367
authorJohan Cwiklinski <jcwiklinski@teclib.com>
Wed, 27 Nov 2019 06:23:42 +0000 (07:23 +0100)
committerJohan Cwiklinski <jcwiklinski@teclib.com>
Wed, 27 Nov 2019 06:23:42 +0000 (07:23 +0100)
galette/webroot/js/common.js

index 7d17821076531db694c0d371fa2ea0b6df31df68..a3e585c838dfaca2a525caabe1d19aec89e5bd17 100644 (file)
@@ -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;
         }
     });