Move tooltips/popovers code to layout

This commit is contained in:
Pablo Vazquez 2016-11-24 19:43:11 +01:00
parent 01e79f8565
commit 89689db96e
3 changed files with 7 additions and 12 deletions

View File

@ -1,10 +1,3 @@
if(typeof($.fn.popover) != 'undefined'){
$('[data-toggle="popover"]').popover();
}
if(typeof($.fn.tooltip) != 'undefined'){
$('[data-toggle="tooltip"]').tooltip({'delay' : {'show': 0, 'hide': 0}});
}
/* Status Bar */
function statusBarClear(delay_class, delay_html){
var statusBar = $("#status-bar");

View File

@ -419,6 +419,13 @@ html(lang="en")
{% endif %}
});
if (typeof $().tooltip != 'undefined'){
$('[data-toggle="tooltip"]').tooltip({'delay' : {'show': 0, 'hide': 0}});
}
if(typeof($.fn.popover) != 'undefined'){
$('[data-toggle="popover"]').popover();
}
| {% block footer_scripts %}{% endblock %}
script.

View File

@ -165,8 +165,3 @@ script(type="text/javascript").
}
{% endif %}
if (typeof $().tooltip != 'undefined'){
$('[data-toggle="tooltip"]').tooltip({'delay' : {'show': 0, 'hide': 0}});
}