2011-06-13 16:23:56 +02:00
|
|
|
<script>
|
|
|
|
//<![CDATA[
|
|
|
|
$(function() {
|
2011-06-13 16:45:16 +02:00
|
|
|
<% for row in @add_data_to_js %>
|
|
|
|
addData(<%= row.join(", ") %>);
|
|
|
|
<% end %>
|
2011-06-13 16:23:56 +02:00
|
|
|
setGroupBalance(<%= @availableFunds %>);
|
|
|
|
|
|
|
|
// localization
|
|
|
|
setDecimalSeparator(",");
|
|
|
|
|
|
|
|
// configuration
|
|
|
|
setToleranceBehaviour(<%= Foodsoft.config[:tolerance_is_costly] %>);
|
|
|
|
|
|
|
|
// initialize javascript
|
|
|
|
updateBalance();
|
|
|
|
|
|
|
|
// show article info on row hover
|
|
|
|
<%#*$$('tbody tr').observer('hover', function() {%>
|
|
|
|
|
|
|
|
<%#*});%>
|
|
|
|
|
|
|
|
});
|
|
|
|
//]]>
|
|
|
|
</script>
|