foodsoft/app/views/ordering/_data.html.erb

26 lines
540 B
Text
Raw Normal View History

2011-06-13 16:23:56 +02:00
<script>
//<![CDATA[
$(function() {
<% 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>