clean up price tooltips javascript

This commit is contained in:
wvengen 2013-10-09 10:35:27 +02:00
parent bdce1b5872
commit b8ff431634
6 changed files with 16 additions and 29 deletions

View file

@ -1,20 +1,5 @@
- title t('.title')
- content_for :javascript do
:javascript
$(function() {
enablePriceTooltips();
});
function enablePriceTooltips(context) {
$('[data-toggle~="tooltip"]', context).tooltip({
animation: false,
html: true,
placement: 'left',
container: 'body'
});
}
- content_for :sidebar do
%p
%i= t('.text_deviations', inv_link: link_to(t('.temp_inventory'), stock_articles_path)).html_safe