556 editMash(dataRecord); |
556 editMash(dataRecord); |
557 console.log('main data loaded'); |
557 console.log('main data loaded'); |
558 calcStage(); |
558 calcStage(); |
559 $('#jqxTabs').jqxTabs('select', 2); |
559 $('#jqxTabs').jqxTabs('select', 2); |
560 }, |
560 }, |
561 loadError: function(jqXHR, status, error) { |
561 loadError: function(jqXHR, status, error) { |
562 console.log('main data load error: ' + status + ' ' + error); |
562 console.log('main data load error: ' + status + ' ' + error); |
563 }, |
|
564 beforeLoadComplete: function(records) { |
|
565 $('#jqxLoader').jqxLoader('open'); |
|
566 } |
563 } |
567 }); |
564 }); |
568 |
565 |
569 // Inline fermentables editor |
566 // Inline fermentables editor |
570 var editFermentable = function(data) { |
567 var editFermentable = function(data) { |
1619 * Remove the top menu so that we MUST use the buttons to leave the editor. |
1616 * Remove the top menu so that we MUST use the buttons to leave the editor. |
1620 */ |
1617 */ |
1621 $('#jqxMenu').jqxMenu('destroy'); |
1618 $('#jqxMenu').jqxMenu('destroy'); |
1622 console.log('record:' + my_record + ' return:' + my_return + ' theme:' + theme); |
1619 console.log('record:' + my_record + ' return:' + my_return + ' theme:' + theme); |
1623 $('#jqxLoader').jqxLoader({ width: 250, height: 150, isModal: true, text: 'Laden product ...', theme: theme }); |
1620 $('#jqxLoader').jqxLoader({ width: 250, height: 150, isModal: true, text: 'Laden product ...', theme: theme }); |
|
1621 $('#jqxLoader').jqxLoader('open'); |
1624 |
1622 |
1625 /* Moved to before all functions */ |
1623 /* Moved to before all functions */ |
1626 console.log('dataAdapter.dataBind() start'); |
1624 console.log('dataAdapter.dataBind() start'); |
1627 dataAdapter.dataBind(); |
1625 dataAdapter.dataBind(); |
1628 console.log('dataAdapter.dataBind() ready'); |
1626 console.log('dataAdapter.dataBind() ready'); |