]> source.dussan.org Git - rspamd.git/commitdiff
Fix maps display 1182/head
authorAnna Stakhova <anna@rspamd.com>
Fri, 25 Nov 2016 22:47:36 +0000 (22:47 +0000)
committerAnna Stakhova <anna@rspamd.com>
Fri, 25 Nov 2016 22:49:11 +0000 (22:49 +0000)
interface/css/rspamd.css
interface/index.html
interface/js/rspamd.js

index 62501df4829c438198ab852d57cb6551a1d8905b..5ab6a63e18962d09f5cee4e55965e15995524009 100644 (file)
@@ -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;
                }*/
index cb3cb7eecc657f74403faa77b55b2809841c56a7..69d249cb3a2273691c8b2c06519003967e01989c 100644 (file)
@@ -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">
index 57d70a39f8edc6a35b31b96290cb68b0a75edff6..e11c0b3ba4439f634372c630160049d7994a4383 100644 (file)
                 $('#modalBody').empty();
                 getMaps();
             }
+
             $.each(data, function (i, item) {
                 $.ajax({
                     dataType: 'text',
         $(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',
 
         $('#configuration_nav').bind('click', function (e) {
             getActions();
+            $('#modalBody').empty();
             getMaps();
         });