www/js/prod_edit.js

changeset 341
9c4bc199be9e
parent 340
fa4eb830c151
child 342
3ac81572bb28
equal deleted inserted replaced
340:fa4eb830c151 341:9c4bc199be9e
5373 autoHeight: false, 5373 autoHeight: false,
5374 position: 'top' 5374 position: 'top'
5375 }); 5375 });
5376 5376
5377 // Buttons below 5377 // Buttons below
5378 $("#Print").jqxButton({ template: "info", width: '80px', theme: theme });
5379 $("#Print").bind('click', function () {
5380 saveRecord();
5381 // Open print in a new tab.
5382 var url="prod_print.php?record=" + my_record;
5383 window.open(url);
5384 });
5385
5386 $("#Export").jqxButton({ template: "info", width: '80px', theme: theme }); 5378 $("#Export").jqxButton({ template: "info", width: '80px', theme: theme });
5387 $("#Export").bind('click', function () { 5379 $("#Export").bind('click', function () {
5388 saveRecord(); 5380 saveRecord();
5389 var url="prod_export.php?record=" + my_record + "&return=" + my_return + "&select=" + my_select + 5381 var url="prod_export.php?record=" + my_record + "&return=" + my_return + "&select=" + my_select +
5390 "&code=" + dataRecord.code + "&name=" + dataRecord.name; 5382 "&code=" + dataRecord.code + "&name=" + dataRecord.name;

mercurial