Showing
1 changed file
with
6 additions
and
0 deletions
@@ -116,7 +116,13 @@ $invoice.on('touchend', '.checkbox', function() { | @@ -116,7 +116,13 @@ $invoice.on('touchend', '.checkbox', function() { | ||
116 | 116 | ||
117 | function updateDeliverId(id) { | 117 | function updateDeliverId(id) { |
118 | var $moreJit = $('.more-jit a').get(0), | 118 | var $moreJit = $('.more-jit a').get(0), |
119 | + url; | ||
120 | + | ||
121 | + if ($moreJit) { | ||
119 | url = $moreJit.href; | 122 | url = $moreJit.href; |
123 | + } else { | ||
124 | + return; | ||
125 | + } | ||
120 | 126 | ||
121 | if (url.indexOf('deliveryId') < 0) { | 127 | if (url.indexOf('deliveryId') < 0) { |
122 | $moreJit.href = url + '&deliveryId=' + id; | 128 | $moreJit.href = url + '&deliveryId=' + id; |
-
Please register or login to post a comment