You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2017/06/29 13:58:50 UTC
[1/2] syncope git commit: Fixes [SYNCOPE-1134]
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 <ma...@tirasa.net>
Authored: Thu Jun 29 15:45:36 2017 +0200
Committer: Francesco Chicchiriccò <il...@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(
[2/2] syncope git commit: Fixes [SYNCOPE-1134] - This closes #48
Posted by il...@apache.org.
Fixes [SYNCOPE-1134] - This closes #48
Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/4e8680b3
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/4e8680b3
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/4e8680b3
Branch: refs/heads/master
Commit: 4e8680b3f11064035d7a2038e7d50d085145c78b
Parents: 653b88a
Author: Matteo Alessandroni <ma...@tirasa.net>
Authored: Thu Jun 29 15:45:36 2017 +0200
Committer: Francesco Chicchiriccò <il...@apache.org>
Committed: Thu Jun 29 15:58:28 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/4e8680b3/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(