syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilgro...@apache.org
Subject [1/2] syncope git commit: Fixes [SYNCOPE-1134]
Date Thu, 29 Jun 2017 13:58:50 GMT
Repository: syncope
Updated Branches:
  refs/heads/2_0_X ab201bb3c -> 132d4156d
  refs/heads/master 653b88a72 -> 4e8680b3f


Fixes [SYNCOPE-1134]


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/132d4156
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/132d4156
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/132d4156

Branch: refs/heads/2_0_X
Commit: 132d4156da4d11b33566d5092c05e4ba547cb176
Parents: ab201bb
Author: Matteo Alessandroni <matteo.alessandroni@tirasa.net>
Authored: Thu Jun 29 15:45:36 2017 +0200
Committer: Francesco Chicchiriccò <ilgrosso@apache.org>
Committed: Thu Jun 29 15:57:56 2017 +0200

----------------------------------------------------------------------
 .../org/apache/syncope/client/console/panels/TogglePanel.java   | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/132d4156/client/console/src/main/java/org/apache/syncope/client/console/panels/TogglePanel.java
----------------------------------------------------------------------
diff --git a/client/console/src/main/java/org/apache/syncope/client/console/panels/TogglePanel.java
b/client/console/src/main/java/org/apache/syncope/client/console/panels/TogglePanel.java
index 17573b6..62c2af4 100644
--- a/client/console/src/main/java/org/apache/syncope/client/console/panels/TogglePanel.java
+++ b/client/console/src/main/java/org/apache/syncope/client/console/panels/TogglePanel.java
@@ -139,6 +139,11 @@ public abstract class TogglePanel<T extends Serializable> extends
WizardMgtPanel
                         selector + ".toggle(\"slow\");"
                         + selector + ".attr(\"class\", \"toggle-menu active-toggle-menu\");");
                 status = Status.ACTIVE;
+            } else if (status == Status.ACTIVE) {
+                // useful when handling action menu after refreshing (ref. SYNCOPE-1134)
+                target.appendJavaScript(
+                        selector + ".not(':visible')" + ".toggle(\"slow\")" + ".removeClass(\"inactive-toggle-menu\")"
+                        + ".addClass(\"active-toggle-menu\");");
             }
         } else if (status == Status.ACTIVE) {
             target.appendJavaScript(


Mime
View raw message