From: Alexander Moisseev Date: Tue, 13 Dec 2016 16:09:43 +0000 (+0300) Subject: [WebUI] Remove unused code X-Git-Tag: 1.5.0~590^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1259%2Fhead;p=thirdparty%2Frspamd.git [WebUI] Remove unused code I believe this code in not necessary. It doesn't work anyway: `e` != `event` --- diff --git a/interface/js/rspamd.js b/interface/js/rspamd.js index 2239334732..742302bd7c 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',