Просмотр исходного кода

Enable tooltips in all templates

Peter Justin 7 лет назад
Родитель
Сommit
4cb1a35ccf

+ 0 - 8
flaskbb/templates/forum/topic.html

@@ -208,11 +208,3 @@
 </div>
 {% include theme('confirm_dialog.html') %}
 {% endblock %}
-
-{% block scripts %}
-    <script>
-    $(function () {
-      $('[data-toggle="tooltip"]').tooltip()
-    })
-    </script>
-{% endblock %}

+ 0 - 8
flaskbb/templates/forum/topic_horizontal.html

@@ -171,11 +171,3 @@
 
 </div>
 {% endblock %}
-
-{% block scripts %}
-    <script>
-    $(function () {
-      $('[data-toggle="tooltip"]').tooltip()
-    })
-    </script>
-{% endblock %}

+ 6 - 0
flaskbb/templates/layout.html

@@ -183,6 +183,12 @@
         {% block javascript %}
         <!-- jquery and bootstrap and flaskbb.js -->
         <script src="{{ url_for('static', filename='js/scripts.min.js') }}"></script>
+        <!-- Enable tooltips in all templates -->
+        <script>
+        $(function () {
+            $('[data-toggle="tooltip"]').tooltip()
+        })
+        </script>
         {% endblock %}
 
         {# for extra scripts in other templates. #}

+ 0 - 4
flaskbb/templates/management/banned_users.html

@@ -118,9 +118,5 @@
 {% block scripts %}
     <script>
     var bulk_actions = new BulkActions();
-
-    $(function () {
-        $('[data-toggle="tooltip"]').tooltip()
-    })
     </script>
 {% endblock %}

+ 0 - 4
flaskbb/templates/management/groups.html

@@ -84,9 +84,5 @@
 {% block scripts %}
     <script>
     var bulk_actions = new BulkActions();
-
-    $(function () {
-        $('[data-toggle="tooltip"]').tooltip()
-    })
     </script>
 {% endblock %}

+ 0 - 4
flaskbb/templates/management/reports.html

@@ -103,9 +103,5 @@
 {% block scripts %}
     <script>
     var bulk_actions = new BulkActions();
-
-    $(function () {
-        $('[data-toggle="tooltip"]').tooltip()
-    })
     </script>
 {% endblock %}

+ 0 - 4
flaskbb/templates/management/users.html

@@ -155,9 +155,5 @@
 {% block scripts %}
     <script>
     var bulk_actions = new BulkActions();
-
-    $(function () {
-        $('[data-toggle="tooltip"]').tooltip()
-    })
     </script>
 {% endblock %}

+ 0 - 8
flaskbb/templates/message/conversation.html

@@ -131,11 +131,3 @@
 {% endif %}
 
 {% endblock %}
-
-{% block scripts %}
-    <script>
-    $(function () {
-      $('[data-toggle="tooltip"]').tooltip()
-    })
-    </script>
-{% endblock %}

+ 0 - 9
flaskbb/templates/message/message_layout.html

@@ -27,12 +27,3 @@
     </div><!--/.col-sm-9 -->
 </div><!--/.row -->
 {% endblock %}
-
-
-{% block scripts %}
-    <script>
-    $(function () {
-      $('[data-toggle="tooltip"]').tooltip()
-    })
-    </script>
-{% endblock %}

+ 0 - 4
flaskbb/templates/user/profile_layout.html

@@ -93,10 +93,6 @@
 
 {% block scripts %}
     <script>
-    $(function () {
-      $('[data-toggle="tooltip"]').tooltip()
-    })
-
     $('#profile-tabs a[href="#overview"]').tab('show') // Select tab by name
     //$('#profile-tabs a[href="#info"]').tab('show') // Select tab by name
     </script>