X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/10fe22289afc69419e623b82a45df555e0c81ea6..4cc35cdc3c6ffc31439f672c47e1d5587e69536e:/js/kivi.Order.js diff --git a/js/kivi.Order.js b/js/kivi.Order.js index f6d042752..5459c0be2 100644 --- a/js/kivi.Order.js +++ b/js/kivi.Order.js @@ -63,9 +63,10 @@ namespace('kivi.Order', function(ns) { $.post("controller.pl", data, kivi.eval_json_result); }; - ns.show_print_options = function(warn_on_duplicates) { + ns.show_print_options = function(warn_on_duplicates, warn_on_reqdate) { if (!ns.check_cv()) return; if (warn_on_duplicates && !ns.check_duplicate_parts(kivi.t8("Do you really want to print?"))) return; + if (warn_on_reqdate && !ns.check_valid_reqdate()) return; kivi.popup_dialog({ id: 'print_options', @@ -144,6 +145,12 @@ namespace('kivi.Order', function(ns) { $.post("controller.pl", data, kivi.eval_json_result); }; + ns.email_dialog_disable_send = function() { + // disable mail send event to prevent + // impatient users to send multiple times + $('#send_email').prop('disabled', true); + }; + ns.close_email_dialog = function() { email_dialog.dialog("close"); }; @@ -468,11 +475,6 @@ namespace('kivi.Order', function(ns) { pp.o.multiple=1; pp.open_dialog(); }; -ns.email_dialog_disable_send = function() { - // disable mail send event to prevent - // impatient users to send multiple times - $('#send_email').prop('disabled', true); - }; ns.add_multi_items = function(data) { var insert_before_item_id = ns.get_insert_before_item_id($('#multi_items_position').val());