You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by cz...@apache.org on 2009/02/16 17:42:10 UTC

svn commit: r744961 - in /felix/trunk/webconsole/src/main/resources/res/ui: bundles.js components.js

Author: cziegeler
Date: Mon Feb 16 16:42:07 2009
New Revision: 744961

URL: http://svn.apache.org/viewvc?rev=744961&view=rev
Log:
Fix display problems if details are already displayed for an entry and directly another details view is requested.

Modified:
    felix/trunk/webconsole/src/main/resources/res/ui/bundles.js
    felix/trunk/webconsole/src/main/resources/res/ui/components.js

Modified: felix/trunk/webconsole/src/main/resources/res/ui/bundles.js
URL: http://svn.apache.org/viewvc/felix/trunk/webconsole/src/main/resources/res/ui/bundles.js?rev=744961&r1=744960&r2=744961&view=diff
==============================================================================
--- felix/trunk/webconsole/src/main/resources/res/ui/bundles.js (original)
+++ felix/trunk/webconsole/src/main/resources/res/ui/bundles.js Mon Feb 16 16:42:07 2009
@@ -139,7 +139,7 @@
 
 function hideDetails( id ) {
 	$("#img" + id).each(function() {
-		$("#bundleInlineDetails").remove();
+		$("#pluginInlineDetails").remove();
         this.setAttribute("src", appRoot + "/res/imgs/arrow_right.png");
         this.setAttribute("onClick", "showDetails('" + id + "')");
         this.setAttribute("title", "Details");
@@ -149,7 +149,8 @@
 
 function renderDetails( data ) {
 	data = data.data[0];
-	$("#entry" + data.id + " > td").eq(1).append("<div id='bundleInlineDetails'/>");
+	$("#pluginInlineDetails").remove();
+	$("#entry" + data.id + " > td").eq(1).append("<div id='pluginInlineDetails'/>");
 	$("#img" + data.id).each(function() {
 		if ( drawDetails ) {
             this.setAttribute("src", appRoot + "/res/imgs/arrow_left.png");
@@ -165,7 +166,7 @@
             this.setAttribute("alt", "Hide Details");
 		}
 	});
-	$("#bundleInlineDetails").append("<table border='0'><tbody></tbody></table>");
+	$("#pluginInlineDetails").append("<table border='0'><tbody></tbody></table>");
     var details = data.props;
     for (var idx in details) {
         var prop = details[idx];
@@ -198,7 +199,7 @@
         	txt = txt + "\u00a0";
         }
         txt = txt + "</td></tr>";
-        $("#bundleInlineDetails > table > tbody").append(txt);
+        $("#pluginInlineDetails > table > tbody").append(txt);
 	}
 }
 

Modified: felix/trunk/webconsole/src/main/resources/res/ui/components.js
URL: http://svn.apache.org/viewvc/felix/trunk/webconsole/src/main/resources/res/ui/components.js?rev=744961&r1=744960&r2=744961&view=diff
==============================================================================
--- felix/trunk/webconsole/src/main/resources/res/ui/components.js (original)
+++ felix/trunk/webconsole/src/main/resources/res/ui/components.js Mon Feb 16 16:42:07 2009
@@ -151,6 +151,7 @@
 
 function renderDetails( data ) {
 	data = data.data[0];
+	$("#pluginInlineDetails").remove();
 	$("#entry" + data.id + " > td").eq(1).append("<div id='pluginInlineDetails'/>");
 	$("#img" + data.id).each(function() {
 		if ( drawDetails ) {