From a65dfe51eb299bf771348b847783662d914c15e6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Thu, 11 Mar 2021 08:50:28 +0100 Subject: [PATCH] =?utf8?q?Kosmetik:=20Auftrags-Controller:=20js:=20Einr?= =?utf8?q?=C3=BCckung=20und=20Position=20der=20Funktion?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- js/kivi.Order.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/js/kivi.Order.js b/js/kivi.Order.js index f6d042752..714a40e53 100644 --- a/js/kivi.Order.js +++ b/js/kivi.Order.js @@ -144,6 +144,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 +474,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()); -- 2.20.1