X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Finventory%2Fwarehouse_selection_stock.html;h=70b6e6fc1c935a76eedb4166a9293acb47b68dd9;hb=511d3561ad2e8fd8bc16cffe9b085f043062f7f3;hp=c9ca33906f6cdab486df65519686f278c2cec643;hpb=5e34b4afb0b02edb4e24253bf4bfc8336bff8cce;p=kivitendo-erp.git diff --git a/templates/webpages/inventory/warehouse_selection_stock.html b/templates/webpages/inventory/warehouse_selection_stock.html index c9ca33906..70b6e6fc1 100644 --- a/templates/webpages/inventory/warehouse_selection_stock.html +++ b/templates/webpages/inventory/warehouse_selection_stock.html @@ -7,7 +7,7 @@ [%- INCLUDE 'common/flash.html' %] -
+ @@ -66,9 +66,6 @@
[% L.input_tag('comment', FORM.comment, size=60) %]
- - -
@@ -86,14 +83,15 @@ function reload_warehouse_selection () { function reload_bin_selection () { $.post("controller.pl", { action: 'Inventory/warehouse_changed', warehouse_id: function(){ return $('#warehouse_id').val() } }, kivi.eval_json_result); } +function check_part_selection_before_stocking() { + if ($('#part_id').val() !== '') + return true; + + alert(kivi.t8('No article has been selected yet.')); + return false; +} $(function(){ $('#part_id').change(reload_warehouse_selection); - $('#part_id').change(function(){ - if ($('#part_id').val() > 0) - $('#action_stock').removeAttr('disabled'); - else - $('#action_stock').attr('disabled', 'disabled'); - }); $('#warehouse_id').change(reload_bin_selection); })