FELIX-1988 Fix an issue where multiple bundle details cannot be shown at the same time

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@911277 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole/src/main/resources/res/ui/bundles.js b/webconsole/src/main/resources/res/ui/bundles.js
index 0a93112..cef5de4 100644
--- a/webconsole/src/main/resources/res/ui/bundles.js
+++ b/webconsole/src/main/resources/res/ui/bundles.js
@@ -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);
 	}
 }