[tor-commits] [atlas/master] Fixed tooltips not working after filtering the search results table

irl at torproject.org irl at torproject.org
Tue Jan 31 22:53:38 UTC 2017


commit fce72d504ee16c74efb48abe578dc248d0a027e3
Author: Raphael Bergmann <raphael at cc-ltd.net>
Date:   Mon Jan 30 17:43:52 2017 +0100

    Fixed tooltips not working after filtering the search results table
---
 js/views/search/do.js | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/js/views/search/do.js b/js/views/search/do.js
index 13fe93c..4226dd8 100644
--- a/js/views/search/do.js
+++ b/js/views/search/do.js
@@ -157,12 +157,14 @@ define([
 				// Save the state of the tables
                 "sDom": "<'row'<'span6'l><'span6 hide'f>r>t<'row'<'span6'i><'span6'p>>",
 				"bStateSave": false,
-				"aaSorting": []
+				"aaSorting": [],
+                "fnDrawCallback": function( oSettings ) {
+                    // Make the tooltips
+                    $(".flags").tooltip();
+                    $(".country").tooltip();
+                    $(".uptime").tooltip();
+                }
 			});
-            // Make the tooltips
-            $(".flags").tooltip();
-            $(".country").tooltip();
-            $(".uptime").tooltip();
             // Type ahead for country codes
             $('.typeahead').typeahead({source:_.values(CountryCodes)});
             $('input#flags').typeahead({





More information about the tor-commits mailing list