Add tooltip for article prices

This commit is contained in:
Julius 2013-06-26 19:57:38 +02:00
parent 2ee7f716ae
commit 8a79dfd167
9 changed files with 41 additions and 15 deletions

View file

@ -61,6 +61,8 @@
return true;
}
});
enablePriceTooltips();
});
function mark_article_for_delivery(stock_article_id) {
@ -78,6 +80,14 @@
return ( 0 == $('#stock_change_stock_article_' + stock_article_id).length );
}
function enablePriceTooltips(context) {
$('[data-toggle~="tooltip"]', context).tooltip({
animation: false,
html: true,
placement: 'left'
});
}
= simple_form_for [@supplier, @delivery], validate: true do |f|
= f.error_notification
= base_errors f.object