ginger-dev-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ginger-dev-list] [PATCH][Ginger] Fix Ginger UI: SEP container is hidden


From: Rodrigo Trujillo
Subject: [Ginger-dev-list] [PATCH][Ginger] Fix Ginger UI: SEP container is hidden after start service
Date: Fri, 4 Mar 2016 13:48:53 -0300

There is an issue in SEP section, that hides the content after click on
start button. Problem was in JavaScript code, which was selecting
multiple objects at once. Removing the coma from code fixes the problem,
so only the right object is selected and then hidden.

Signed-off-by: Rodrigo Trujillo <address@hidden>
---
 ui/js/host-admin.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/ui/js/host-admin.js b/ui/js/host-admin.js
index 1564243..7fa7089 100644
--- a/ui/js/host-admin.js
+++ b/ui/js/host-admin.js
@@ -370,14 +370,14 @@ ginger.initSEPConfig = function() {
     var sepStatus = function() {
         ginger.getSEPStatus(function(result) {
             if (result.status === "running") {
-                $("#sep-ppc-content-area, .fa-circle").removeClass("hidden");
-                $("#sep-ppc-content-area, 
.fa-times-circle").addClass("hidden");
+                $("#sep-ppc-content-area .fa-circle").removeClass("hidden");
+                $("#sep-ppc-content-area .fa-times-circle").addClass("hidden");
                 $("#sepStatusLog").text("Running");
                 $("#sepStart").button().attr("style", "display:none");
                 $("#sepStop").button().attr("style", "display");
             } else {
-                $("#sep-ppc-content-area, .fa-circle").addClass("hidden");
-                $("#sep-ppc-content-area, 
.fa-times-circle").removeClass("hidden");
+                $("#sep-ppc-content-area .fa-circle").addClass("hidden");
+                $("#sep-ppc-content-area 
.fa-times-circle").removeClass("hidden");
                 $("#sepStatusLog").text("Stopped");
                 $("#sepStart").button().attr("style", "display");
                 $("#sepStop").button().attr("style", "display:none");
-- 
2.1.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]