[Carbon-dev] svn commit r31019 - in trunk/carbon-components/registry/org.wso2.carbon.registry.ui.resources/src/main/resources/web/resources: . css js

chanaka at wso2.com chanaka at wso2.com
Tue Feb 17 21:31:45 PST 2009


Author: chanaka
Date: Tue Feb 17 21:31:44 2009
New Revision: 31019
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=31019

Log:
minor fix on resource page

Modified:
   trunk/carbon-components/registry/org.wso2.carbon.registry.ui.resources/src/main/resources/web/resources/css/registry.css
   trunk/carbon-components/registry/org.wso2.carbon.registry.ui.resources/src/main/resources/web/resources/js/resource_util.js
   trunk/carbon-components/registry/org.wso2.carbon.registry.ui.resources/src/main/resources/web/resources/raw-collection-content.jsp

Modified: trunk/carbon-components/registry/org.wso2.carbon.registry.ui.resources/src/main/resources/web/resources/css/registry.css
URL: http://wso2.org/svn/browse/wso2/trunk/carbon-components/registry/org.wso2.carbon.registry.ui.resources/src/main/resources/web/resources/css/registry.css?rev=31019&r1=31018&r2=31019&view=diff
==============================================================================
--- trunk/carbon-components/registry/org.wso2.carbon.registry.ui.resources/src/main/resources/web/resources/css/registry.css	(original)
+++ trunk/carbon-components/registry/org.wso2.carbon.registry.ui.resources/src/main/resources/web/resources/css/registry.css	Tue Feb 17 21:31:44 2009
@@ -490,7 +490,7 @@
 border-right:solid 1px #717171;
 border-top:none !important;
 }
-.action-pane-helper{
+.actionSelected{
 border-bottom:none !important;
 background-color:#f3f3f3;
 }

Modified: trunk/carbon-components/registry/org.wso2.carbon.registry.ui.resources/src/main/resources/web/resources/js/resource_util.js
URL: http://wso2.org/svn/browse/wso2/trunk/carbon-components/registry/org.wso2.carbon.registry.ui.resources/src/main/resources/web/resources/js/resource_util.js?rev=31019&r1=31018&r2=31019&view=diff
==============================================================================
--- trunk/carbon-components/registry/org.wso2.carbon.registry.ui.resources/src/main/resources/web/resources/js/resource_util.js	(original)
+++ trunk/carbon-components/registry/org.wso2.carbon.registry.ui.resources/src/main/resources/web/resources/js/resource_util.js	Tue Feb 17 21:31:44 2009
@@ -1995,16 +1995,19 @@
 		textContentEditor.render();
 	}
 }
-function loadActionPane(toShow){
+function loadActionPane(rowNum){
+        var clickedTD = "actionPaneHelper"+rowNum;
+        var toShow="actionPane"+rowNum;
 	var allElms = document.getElementById("entryList").getElementsByTagName("*");
-	var actionPanes = new Array();
+
 	for (var i = 0; i < allElms.length; i++) {
 		if(YAHOO.util.Dom.hasClass(allElms[i], "actionPaneSelector")){
-			actionPanes.push(allElms[i]);
+			allElms[i].style.display="none";
+		}
+		if(YAHOO.util.Dom.hasClass(allElms[i], "action-pane-helper")){
+			YAHOO.util.Dom.removeClass(allElms[i],"actionSelected");
 		}
 	}
-	for (var j = 0; j < actionPanes.length; j++) {
-		actionPanes[j].style.display="none";
-	}
+	YAHOO.util.Dom.addClass(clickedTD,"actionSelected");
 	showHideCommon(toShow);
 }
\ No newline at end of file

Modified: trunk/carbon-components/registry/org.wso2.carbon.registry.ui.resources/src/main/resources/web/resources/raw-collection-content.jsp
URL: http://wso2.org/svn/browse/wso2/trunk/carbon-components/registry/org.wso2.carbon.registry.ui.resources/src/main/resources/web/resources/raw-collection-content.jsp?rev=31019&r1=31018&r2=31019&view=diff
==============================================================================
--- trunk/carbon-components/registry/org.wso2.carbon.registry.ui.resources/src/main/resources/web/resources/raw-collection-content.jsp	(original)
+++ trunk/carbon-components/registry/org.wso2.carbon.registry.ui.resources/src/main/resources/web/resources/raw-collection-content.jsp	Tue Feb 17 21:31:44 2009
@@ -396,10 +396,10 @@
         }
 
     %>
-    <td valign="top"  <% if (entryNumber == 1) { %> id="resourceSizer" <% } %> class="action-pane-helper">
+    <td valign="top"  id="actionPaneHelper<%=entryNumber%>" class="action-pane-helper">
         <% if (resourceData.getResourceType().equals(UIConstants.COLLECTION)) { %>
         <a class="folder-small-icon-link"
-           onclick="loadActionPane('actionPane<%=entryNumber%>')"
+           onclick="loadActionPane('<%=entryNumber%>')"
            id="resourceView<%=entryNumber%>"
            title="<%=resourceData.getName()%>"><%=resourceNameSmall%>
         </a>
@@ -408,7 +408,7 @@
         <% } else { %>
 
         <a class="resource-icon-link"
-           onclick="loadActionPane('actionPane<%=entryNumber%>')"
+           onclick="loadActionPane('<%=entryNumber%>')"
            id="resourceView<%=entryNumber%>" title="<%=resourceData.getName()%>">
             <%=resourceNameSmall%>
         </a>



More information about the Carbon-dev mailing list