From 32207f69474d11a61adaa0627d0830a38a8063ca Mon Sep 17 00:00:00 2001 From: Alexander Moisseev Date: Tue, 13 Dec 2016 19:09:43 +0300 Subject: [PATCH] [WebUI] Remove unused code I believe this code in not necessary. It doesn't work anyway: `e` != `event` --- interface/js/rspamd.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/interface/js/rspamd.js b/interface/js/rspamd.js index 223933473..742302bd7 100644 --- a/interface/js/rspamd.js +++ b/interface/js/rspamd.js @@ -396,11 +396,7 @@ $(document).on('click', '[data-dismiss="modal"]', function (e) { $('#modalBody form').hide(); }); - $(document).on('click', '', function (e) { - if (event.target == document.getElementById('modalDialog')) { - $('#modalBody form').hide(); - } - }); + function getChart() { $.ajax({ dataType: 'json', -- 2.39.5