2265 rendertoolbar: function (toolbar) { |
2265 rendertoolbar: function (toolbar) { |
2266 var me = this; |
2266 var me = this; |
2267 var container = $("<div style='overflow: hidden; position: relative; margin: 5px;'></div>"); |
2267 var container = $("<div style='overflow: hidden; position: relative; margin: 5px;'></div>"); |
2268 toolbar.append(container); |
2268 toolbar.append(container); |
2269 container.append('<input style="float: left; margin-left: 165px;" id="saddrowbutton" type="button" value="Nieuwe stap" />'); |
2269 container.append('<input style="float: left; margin-left: 165px;" id="saddrowbutton" type="button" value="Nieuwe stap" />'); |
2270 container.append('<input style="float: left; margin-left: 440px;" id="sdeleterowbutton" type="button" value="Verwijder stap" />'); |
2270 container.append('<input style="float: left; margin-left: 565px;" id="sdeleterowbutton" type="button" value="Verwijder stap" />'); |
2271 $("#saddrowbutton").jqxButton({ template: "primary", theme: theme, height: 27, width: 150 }); |
2271 $("#saddrowbutton").jqxButton({ template: "primary", theme: theme, height: 27, width: 150 }); |
2272 $("#saddrowbutton").on('click', function () { |
2272 $("#saddrowbutton").on('click', function () { |
2273 var datarow = generaterow(); |
2273 var datarow = generaterow(); |
2274 var commit = $("#mashGrid").jqxGrid('addrow', null, datarow); |
2274 var commit = $("#mashGrid").jqxGrid('addrow', null, datarow); |
2275 }); |
2275 }); |
3060 rowdata.step_type = index; |
3060 rowdata.step_type = index; |
3061 if (index == 0) { |
3061 if (index == 0) { |
3062 $("#wstep_infuse_amount").show(); |
3062 $("#wstep_infuse_amount").show(); |
3063 $("#wstep_pmpt").show(); |
3063 $("#wstep_pmpt").show(); |
3064 } else { |
3064 } else { |
|
3065 rowdata.step_infuse_amount = 0; |
3065 $("#wstep_infuse_amount").hide(); |
3066 $("#wstep_infuse_amount").hide(); |
3066 $("#wstep_pmpt").hide(); |
3067 $("#wstep_pmpt").hide(); |
3067 } |
3068 } |
3068 mash_infuse = 0; |
3069 mash_infuse = 0; |
3069 var rows = $('#mashGrid').jqxGrid('getrows'); |
3070 var rows = $('#mashGrid').jqxGrid('getrows'); |