633 height: 27, |
633 height: 27, |
634 dropDownWidth: 500, |
634 dropDownWidth: 500, |
635 dropDownHeight: 500, |
635 dropDownHeight: 500, |
636 renderer: function(index, label, value) { |
636 renderer: function(index, label, value) { |
637 var datarecord = fermentablelist.records[index]; |
637 var datarecord = fermentablelist.records[index]; |
638 return datarecord.supplier + ' / ' + datarecord.name + ' (' + datarecord.color + ' EBC)'; |
638 return datarecord.supplier + ' / ' + datarecord.name + ' (' + datarecord.color + ' EBC) (' + Round(datarecord.inventory, 3) + ' kg)'; |
639 } |
639 } |
640 }); |
640 }); |
641 $('#faddrowbutton').on('select', function(event) { |
641 $('#faddrowbutton').on('select', function(event) { |
642 if (event.args) { |
642 if (event.args) { |
643 var index, datarecord, row = {}, rowscount = $('#fermentableGrid').jqxGrid('getdatainformation').rowscount; |
643 var index, datarecord, row = {}, rowscount = $('#fermentableGrid').jqxGrid('getdatainformation').rowscount; |
868 height: 27, |
868 height: 27, |
869 dropDownWidth: 500, |
869 dropDownWidth: 500, |
870 dropDownHeight: 500, |
870 dropDownHeight: 500, |
871 renderer: function(index, label, value) { |
871 renderer: function(index, label, value) { |
872 var datarecord = hoplist.records[index]; |
872 var datarecord = hoplist.records[index]; |
873 return datarecord.origin + ' - ' + datarecord.name + ' / ' + HopFormData[datarecord.form].nl + ' (' + datarecord.alpha + '% α)'; |
873 return datarecord.origin + ' - ' + datarecord.name + ' / ' + HopFormData[datarecord.form].nl + ' (' + datarecord.alpha + '% α) (' + |
|
874 Round(datarecord.inventory * 1000.0, 1) + ' gr)'; |
874 } |
875 } |
875 }); |
876 }); |
876 $('#haddrowbutton').on('select', function(event) { |
877 $('#haddrowbutton').on('select', function(event) { |
877 if (event.args) { |
878 if (event.args) { |
878 var datarecord, row = {}, index = event.args.index; |
879 var datarecord, row = {}, index = event.args.index; |