Fixed saving PackingLists

This commit is contained in:
Karl Cordes 2013-06-14 22:44:01 +10:00
parent 2a54d15b99
commit e2b1af84d8

View file

@ -382,8 +382,6 @@ $(function() {
$("#saveInvoiceButton").click(function() {
saveDocument('Invoice');
});
//OA View.
$("#saveOAButton").click(function() {
@ -394,6 +392,16 @@ $(function() {
});
//PackingList View. Damn you past Karl.
$("#savePackingListButton").click(function() {
saveDocument('Packing List');
//if the job has changed, the create invoice button wont work properly.
window.location.reload(true);
$('.job-title').html($("#PackingListJobId :selected").text());
});
$("#createOA").click(function() {
$("#addJobConfirmation").dialog('open');
});