aboutsummaryrefslogtreecommitdiffstats
path: root/interface
diff options
context:
space:
mode:
authorAnna Stakhova <anna@rspamd.com>2016-11-25 22:47:36 +0000
committerAnna Stakhova <anna@rspamd.com>2016-11-25 22:49:11 +0000
commita96a08e35a050bc0f107fee990e5bbb4321f37b3 (patch)
tree1fabe1498a0d0d5da2c8cfd6bed88c23c8dfea32 /interface
parent1370bc0b24ab10c43b1a15877f70ae7488d851c2 (diff)
downloadrspamd-a96a08e35a050bc0f107fee990e5bbb4321f37b3.tar.gz
rspamd-a96a08e35a050bc0f107fee990e5bbb4321f37b3.zip
Fix maps display
Diffstat (limited to 'interface')
-rw-r--r--interface/css/rspamd.css3
-rw-r--r--interface/index.html4
-rw-r--r--interface/js/rspamd.js8
3 files changed, 12 insertions, 3 deletions
diff --git a/interface/css/rspamd.css b/interface/css/rspamd.css
index 62501df48..5ab6a63e1 100644
--- a/interface/css/rspamd.css
+++ b/interface/css/rspamd.css
@@ -338,6 +338,9 @@ td.maps-cell {
margin:0 10px 10px 0;
padding:0 10px;
}
+ .stat-box:not(.pull-right) {
+ width: 90px;
+ }
/*.stat-boxes .stat-box:first-child {
margin-right:0;
}*/
diff --git a/interface/index.html b/interface/index.html
index cb3cb7eec..69d249cb3 100644
--- a/interface/index.html
+++ b/interface/index.html
@@ -19,8 +19,8 @@
<div class="navbar-header">
<a class="navbar-brand" href="."><img src="./img/rspamd_logo_navbar.png" style="width: 67px; margin-top: -16px;"/></a>
</div>
- <ul class="nav pull-right navbar-nav" style="display:none">
- <li><a href="#" data-toggle="tab" id="refresh">Refresh</a></li>
+ <ul class="nav pull-right navbar-nav navbar-right" style="display:none">
+ <li><a href="#" data-toggle="tab" id="refresh"><i class="glyphicon glyphicon-refresh"></i> Refresh</a></li>
<li class="spinner"><a href="#" data-toggle="tab" id="disconnect">Disconnect</a></li>
</ul>
<ul class="nav navbar-nav nav-pills" role="tablist">
diff --git a/interface/js/rspamd.js b/interface/js/rspamd.js
index 57d70a39f..e11c0b3ba 100644
--- a/interface/js/rspamd.js
+++ b/interface/js/rspamd.js
@@ -255,6 +255,7 @@
$('#modalBody').empty();
getMaps();
}
+
$.each(data, function (i, item) {
$.ajax({
dataType: 'text',
@@ -376,7 +377,11 @@
$(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',
@@ -1224,6 +1229,7 @@
$('#configuration_nav').bind('click', function (e) {
getActions();
+ $('#modalBody').empty();
getMaps();
});