1578 * Remove the top menu so that we MUST use the buttons to leave the editor. |
1578 * Remove the top menu so that we MUST use the buttons to leave the editor. |
1579 */ |
1579 */ |
1580 $('#jqxMenu').jqxMenu('destroy'); |
1580 $('#jqxMenu').jqxMenu('destroy'); |
1581 console.log("record:" + my_record + " return:" + my_return + " theme:" + theme); |
1581 console.log("record:" + my_record + " return:" + my_return + " theme:" + theme); |
1582 $("#jqxLoader").jqxLoader({width:250,height:150,isModal:true,text:"Laden product ...",theme:theme}); |
1582 $("#jqxLoader").jqxLoader({width:250,height:150,isModal:true,text:"Laden product ...",theme:theme}); |
1583 dataAdapter.dataBind(); |
1583 // dataAdapter.dataBind(); |
1584 |
1584 |
1585 /* |
1585 /* |
1586 * Generic functions |
1586 * Generic functions |
1587 */ |
1587 */ |
1588 function calcSupplies() { |
1588 function calcSupplies() { |
4376 console.log("saveRecord() error"); |
4376 console.log("saveRecord() error"); |
4377 } |
4377 } |
4378 }); |
4378 }); |
4379 }; |
4379 }; |
4380 |
4380 |
|
4381 dataAdapter.dataBind(); |
4381 // initialize the input fields. |
4382 // initialize the input fields. |
4382 // Tab 1, Algemeen |
4383 // Tab 1, Algemeen |
4383 $("#name").jqxTooltip({ content: 'De naam voor dit product.' }); |
4384 $("#name").jqxTooltip({ content: 'De naam voor dit product.' }); |
4384 $("#name").jqxInput({ theme: theme, width: 640, height: 23 }); |
4385 $("#name").jqxInput({ theme: theme, width: 640, height: 23 }); |
4385 $("#code").jqxTooltip({ content: 'Product code nummer.' }); |
4386 $("#code").jqxTooltip({ content: 'Product code nummer.' }); |
6029 |
6030 |
6030 $("#Save").jqxButton({ template: "success", width: '80px', theme: theme }); |
6031 $("#Save").jqxButton({ template: "success", width: '80px', theme: theme }); |
6031 $("#Save").bind('click', function () { |
6032 $("#Save").bind('click', function () { |
6032 saveRecord(); |
6033 saveRecord(); |
6033 window.location.href = my_return; |
6034 window.location.href = my_return; |
6034 }); |
6035 }); |
6035 createDelElements(); |
6036 createDelElements(); |
6036 }); |
6037 }); |
6037 |
6038 |