]> source.dussan.org Git - rspamd.git/commitdiff
[WebUI] Remove unused code 1259/head
authorAlexander Moisseev <moiseev@mezonplus.ru>
Tue, 13 Dec 2016 16:09:43 +0000 (19:09 +0300)
committerGitHub <noreply@github.com>
Tue, 13 Dec 2016 16:09:43 +0000 (19:09 +0300)
I believe this code in not necessary. It doesn't work anyway: `e` != `event`

interface/js/rspamd.js

index 2239334732322f6a9fdf38013bf39f700af9ba86..742302bd7cd0315700e6cc97f09258af0b860579 100644 (file)
         $(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',