felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r911277 - /felix/trunk/webconsole/src/main/resources/res/ui/bundles.js
Date Thu, 18 Feb 2010 08:08:47 GMT
Author: fmeschbe
Date: Thu Feb 18 08:08:47 2010
New Revision: 911277

URL: http://svn.apache.org/viewvc?rev=911277&view=rev
Log:
FELIX-1988 Fix an issue where multiple bundle details cannot be shown at the same time

Modified:
    felix/trunk/webconsole/src/main/resources/res/ui/bundles.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=911277&r1=911276&r2=911277&view=diff
==============================================================================
--- felix/trunk/webconsole/src/main/resources/res/ui/bundles.js (original)
+++ felix/trunk/webconsole/src/main/resources/res/ui/bundles.js Thu Feb 18 08:08:47 2010
@@ -154,7 +154,7 @@
 function hideDetails( id ) {
 	currentBundle = null;
 	$("#img" + id).each(function() {
-		$("#pluginInlineDetails").remove();
+		$("#pluginInlineDetails" + id).remove();
 		$(this).attr("src", appRoot + "/res/imgs/arrow_right.png");
 		$(this).attr("title", "Details");
 		$(this).attr("alt", "Details");
@@ -163,8 +163,7 @@
 }
 
 function renderDetails( data ) {
-	$("#pluginInlineDetails").remove();
-	$("#entry" + data.id + " > td").eq(1).append("<div id='pluginInlineDetails'/>");
+	$("#entry" + data.id + " > td").eq(1).append("<div id='pluginInlineDetails"  + data.id
+ "'/>");
 	$("#img" + data.id).each(function() {
 		if ( drawDetails ) {
 			$(this).attr("src", appRoot + "/res/imgs/arrow_left.png");
@@ -180,7 +179,7 @@
 			$(this).unbind('click').click(function() {hideDetails(data.id)});
 		}
 	});
-	$("#pluginInlineDetails").append("<table border='0'><tbody></tbody></table>");
+	$("#pluginInlineDetails" + data.id).append("<table border='0'><tbody></tbody></table>");
     var details = data.props;
     for (var idx in details) {
         var prop = details[idx];
@@ -213,7 +212,7 @@
         	txt = txt + "\u00a0";
         }
         txt = txt + "</td></tr>";
-        $("#pluginInlineDetails > table > tbody").append(txt);
+        $("#pluginInlineDetails" + data.id + " > table > tbody").append(txt);
 	}
 }
 



Mime
View raw message