aboutsummaryrefslogtreecommitdiffstats
path: root/interface/js
diff options
context:
space:
mode:
authorAnna Stakhova <anna@rspamd.com>2016-11-26 18:43:02 +0000
committerAnna Stakhova <anna@rspamd.com>2016-11-26 18:43:02 +0000
commita3f1ef5835fc4cb385091b1e450832d69d1bf983 (patch)
tree7a5cbe162bea7a6ee05cf5dfec771e72520e5edd /interface/js
parenta96a08e35a050bc0f107fee990e5bbb4321f37b3 (diff)
downloadrspamd-a3f1ef5835fc4cb385091b1e450832d69d1bf983.tar.gz
rspamd-a3f1ef5835fc4cb385091b1e450832d69d1bf983.zip
Fix scan clear btn
Fix scan clear btn Add upload btn (for future using) Improve navbar right buttons
Diffstat (limited to 'interface/js')
-rw-r--r--interface/js/rspamd.js7
1 files changed, 3 insertions, 4 deletions
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 () {