Commit 5e0ccca8 authored by Artem Serga's avatar Artem Serga

#1 - Refine selector for tooltip

parent 253af1dc
...@@ -124,7 +124,10 @@ ...@@ -124,7 +124,10 @@
{{ name }} {{ name }}
{% endif %} {% endif %}
{% if c in admin_view.column_descriptions %} {% if c in admin_view.column_descriptions %}
<a class="icon-question-sign js-tooltip" title="{{ admin_view.column_descriptions[c] }}" href="#"></a> <a class="icon-question-sign"
title="{{ admin_view.column_descriptions[c] }}"
href="#" data-role="tooltip"
></a>
{% endif %} {% endif %}
</th> </th>
{% set column = column + 1 %} {% set column = column + 1 %}
...@@ -180,12 +183,14 @@ ...@@ -180,12 +183,14 @@
<script language="javascript"> <script language="javascript">
(function($) { (function($) {
$('.js-tooltip').tooltip(); $('[data-role=tooltip]').tooltip();
{% if filter_groups is not none and filter_data is not none %} {% if filter_groups is not none and filter_data is not none %}
var filter = new AdminFilters('#filter_form', '.field-filters', var filter = new AdminFilters(
{{ admin_view._filter_dict|tojson|safe }}, '#filter_form', '.field-filters',
{{ filter_data|tojson|safe }}, {{ admin_view._filter_dict|tojson|safe }},
{{ filter_types|tojson|safe }}); {{ filter_data|tojson|safe }},
{{ filter_types|tojson|safe }}
);
{% endif %} {% endif %}
})(jQuery); })(jQuery);
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment