From 511e109cc7141eb2731b0c4a6ce42f3608118499 Mon Sep 17 00:00:00 2001 From: mukaiu Date: Fri, 16 Nov 2018 17:46:23 +0800 Subject: [PATCH] =?UTF-8?q?#153=20remove=20qlist=20=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E6=AC=A1=E6=95=B0=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/apps/im/chatbot/index.html | 20 ++++++++----------- 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/contact-center/app/src/main/resources/templates/apps/im/chatbot/index.html b/contact-center/app/src/main/resources/templates/apps/im/chatbot/index.html index 8359a758..2a8177ed 100644 --- a/contact-center/app/src/main/resources/templates/apps/im/chatbot/index.html +++ b/contact-center/app/src/main/resources/templates/apps/im/chatbot/index.html @@ -586,21 +586,17 @@ var list = element.find('.button-box'); for (let i = 0; i < data.length; i++) { var item = data[i]; - var allowClick = true; var btn = $('
' + item.label + '
'); var regClick = function (key) { btn.click(function () { - if (allowClick) { - allowClick = false; - socket.emit('message', { - appid: "${appid!''}", - userid: "${userid!''}", - type: "message", - session: "${sessionid!''}", - orgi: "${orgi!''}", - message: key - }); - } + socket.emit('message', { + appid: "${appid!''}", + userid: "${userid!''}", + type: "message", + session: "${sessionid!''}", + orgi: "${orgi!''}", + message: key + }); }); } regClick(item.text);