commit 0a60f65: [Minor] WebUI: Remove unused code

moisseev moiseev at mezonplus.ru
Sun Jun 16 10:28:04 UTC 2019


Author: moisseev
Date: 2019-06-15 20:56:17 +0300
URL: https://github.com/rspamd/rspamd/commit/0a60f65e127c3aec0638a5c7be6c047e76e3a85a (refs/pull/2926/head)

[Minor] WebUI: Remove unused code

---
 interface/index.html       | 8 ++------
 interface/js/app/config.js | 1 -
 interface/js/app/rspamd.js | 2 --
 3 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/interface/index.html b/interface/index.html
index a04ef78fc..6229d7882 100644
--- a/interface/index.html
+++ b/interface/index.html
@@ -328,18 +328,14 @@
 </div>
 
 <!-- Common modal -->
-<div id="modalDialog" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="modalLabel">
+<div id="modalDialog" class="modal fade" tabindex="-1" role="dialog">
 	<div class="modal-dialog">
 		<div class="modal-content">
 			<div class="modal-header">
 				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
 				<h3 id="modalTitle"></h3>
 			</div>
-			<div class="modal-body" id="modalBody">
-				<div class="progress progress-striped active">
-					<div class="bar" style="width: 100%;"></div>
-				</div>
-			</div>
+			<div class="modal-body" id="modalBody"></div>
 			<div class="modal-footer">
 				<button class="btn btn-default" data-dismiss="modal" aria-hidden="true" id="modalClose">Close</button>
 				<button class="btn btn-primary" id="modalSave">Save changes</button>
diff --git a/interface/js/app/config.js b/interface/js/app/config.js
index 5ab24f9ef..e679780f4 100644
--- a/interface/js/app/config.js
+++ b/interface/js/app/config.js
@@ -192,7 +192,6 @@ define(["jquery"],
 
                         $("#modalTitle").html(item.uri);
                         $("#" + item.map).first().show();
-                        $("#modalDialog .progress").hide();
                         $("#modalDialog").modal({backdrop:true, keyboard:"show", show:true});
                         if (item.editable === false) {
                             $("#modalSave").hide();
diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js
index e37a08cf0..6e4de609d 100644
--- a/interface/js/app/rspamd.js
+++ b/interface/js/app/rspamd.js
@@ -167,10 +167,8 @@ function ($, D3pie, visibility, NProgress, stickyTabs, tab_stat, tab_graph, tab_
 
         var buttons = $("#navBar .pull-right");
         $("#mainUI").show();
-        $("#progress").show();
         $(buttons).show();
         $(".nav-tabs-sticky").stickyTabs({initialTab:"#status_nav"});
-        $("#progress").hide();
     }
 
     function alertMessage(alertClass, alertText) {


More information about the Commits mailing list