From a3f1ef5835fc4cb385091b1e450832d69d1bf983 Mon Sep 17 00:00:00 2001 From: Anna Stakhova Date: Sat, 26 Nov 2016 18:43:02 +0000 Subject: Fix scan clear btn Fix scan clear btn Add upload btn (for future using) Improve navbar right buttons --- interface/js/rspamd.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'interface/js') diff --git a/interface/js/rspamd.js b/interface/js/rspamd.js index e11c0b3ba..3a38a326b 100644 --- a/interface/js/rspamd.js +++ b/interface/js/rspamd.js @@ -947,12 +947,11 @@ } // @close scan output $('#scanClean').on('click', function () { - $('#scanTextSource').val(''); + $('#scanTextSource').val(""); $('#scanResult').hide(); $('#scanOutput tbody').remove(); - $('html, body').animate({ - scrollTop: 0 - }, 1000); + $('html, body').animate({scrollTop: 0}, 1000); + return false; }); // @init upload $('[data-upload]').on('click', function () { -- cgit v1.2.3