You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@clerezza.apache.org by it...@apache.org on 2010/09/10 15:39:17 UTC

svn commit: r995790 - /incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.web.resources.jquery/src/main/resources/org/apache/clerezza/web/resources/jquery/staticweb/jquery.panel.js

Author: ito
Date: Fri Sep 10 13:39:17 2010
New Revision: 995790

URL: http://svn.apache.org/viewvc?rev=995790&view=rev
Log:
jquery plugin panel updated: only left-hand side panel should be closed

Modified:
    incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.web.resources.jquery/src/main/resources/org/apache/clerezza/web/resources/jquery/staticweb/jquery.panel.js

Modified: incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.web.resources.jquery/src/main/resources/org/apache/clerezza/web/resources/jquery/staticweb/jquery.panel.js
URL: http://svn.apache.org/viewvc/incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.web.resources.jquery/src/main/resources/org/apache/clerezza/web/resources/jquery/staticweb/jquery.panel.js?rev=995790&r1=995789&r2=995790&view=diff
==============================================================================
--- incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.web.resources.jquery/src/main/resources/org/apache/clerezza/web/resources/jquery/staticweb/jquery.panel.js (original)
+++ incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.web.resources.jquery/src/main/resources/org/apache/clerezza/web/resources/jquery/staticweb/jquery.panel.js Fri Sep 10 13:39:17 2010
@@ -9,11 +9,12 @@ $(document).ready(function () {
 
 	$('.tx-panel-open-close').bind("click",function(){
 
-		var oPanel = $('.tx-panel').children().not(".tx-panel-open-close");
-		if (!$('.tx-panel').hasClass("tx-close")) {
+		var oPanel = $('.tx-panel').not(".tx-panel-middle").not(".tx-panel-right");
+
+		if (!oPanel.hasClass("tx-close")) {
 			$(this).removeClass("tx-icon-left-inverse");
 			$(this).addClass("tx-icon-right-inverse");
-			$('.tx-panel').addClass("tx-close");
+			oPanel.addClass("tx-close");
 			$(this).addClass("tx-close");
 			$('.tx-list').addClass("tx-hide-panel").removeClass("tx-show-panel");
 			$('.tx-edit').addClass("tx-hide-panel").removeClass("tx-show-panel");
@@ -22,7 +23,7 @@ $(document).ready(function () {
 		else {
 			$(this).removeClass("tx-icon-right-inverse");
 			$(this).addClass("tx-icon-left-inverse");
-			$('.tx-panel').removeClass("tx-close");
+			oPanel.removeClass("tx-close");
 			$(this).removeClass("tx-close");
 			$('.tx-list').addClass("tx-show-panel").removeClass("tx-hide-panel");
 			$('.tx-edit').addClass("tx-show-panel").removeClass("tx-hide-panel");