Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Frost2012-09-26 16:26:36 +0000
committerChristopher Frost2012-09-26 16:26:36 +0000
commita34acd752e631b0dfbe92a0465f2a916342ca6f2 (patch)
tree69b8883c6ef6cc92ee7934f06c690303b01e138c
parentd8076ad8d863ad84589b274c2f2e017cb45d9936 (diff)
downloadorg.eclipse.virgo.kernel-a34acd752e631b0dfbe92a0465f2a916342ca6f2.tar.gz
org.eclipse.virgo.kernel-a34acd752e631b0dfbe92a0465f2a916342ca6f2.tar.xz
org.eclipse.virgo.kernel-a34acd752e631b0dfbe92a0465f2a916342ca6f2.zip
388237 Forced caching to be false on all requests in the Dumps page to allow IE to update the page
-rw-r--r--org.eclipse.virgo.management.console/src/main/webapp/js/dumps.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/org.eclipse.virgo.management.console/src/main/webapp/js/dumps.js b/org.eclipse.virgo.management.console/src/main/webapp/js/dumps.js
index 0624f6df..a099535c 100644
--- a/org.eclipse.virgo.management.console/src/main/webapp/js/dumps.js
+++ b/org.eclipse.virgo.management.console/src/main/webapp/js/dumps.js
@@ -41,17 +41,16 @@ var DumpViewer = function(){
$.ajax({
url: util.getCurrentHost() + '/jolokia/read/org.eclipse.virgo.kernel:type=Medic,name=DumpInspector/Dumps',
dataType: 'json',
+ cache: false,
success: function (response){
self.displayDumpsResponse(response.value);
if(self.selectedDump){
// Look up the id of the selected dump again.
var dumpId = self.selectedDump.attr("id");
self.selectedDump = $('#' + dumpId);
-
if (self.selectedDump){
$(self.selectedDump).addClass('selected-item');
}
-
}
self.displaySelectedDump();
}
@@ -64,10 +63,7 @@ var DumpViewer = function(){
$.each(json, function(index, item){
var dumpListItem = $('<li />', {'class' : 'dump'});
dumpListItem.attr("id", item);
- var label = $('<div />', {'class' : 'label'});
- label.text(item);
- label.click(dumpListItem, self.displayDumpEntries);
- dumpListItem.append(label);
+ dumpListItem.append($('<div />', {'class' : 'label'}).text(item).click(dumpListItem, self.displayDumpEntries));
dumpListItem.append($('<div />', {'class' : 'delete'}).text("Delete").click(dumpListItem, self.deleteDump));
$('#dumps').append(dumpListItem);
});
@@ -97,6 +93,7 @@ var DumpViewer = function(){
$.ajax({
url: util.getCurrentHost() + '/jolokia/exec/org.eclipse.virgo.kernel:type=Medic,name=DumpInspector/getDumpEntries/' + dumpId,
dataType: 'json',
+ cache: false,
success: function (response){
self.displaySelectedDumpResponse(response.value, self.selectedDump);
}
@@ -187,6 +184,7 @@ var DumpViewer = function(){
$.ajax({
url: util.getCurrentHost() + '/jolokia/exec/org.eclipse.virgo.kernel:type=Medic,name=DumpInspector/createDump',
dataType: 'json',
+ cache: false,
success: function (response){
self.displayDumps();
}
@@ -199,6 +197,7 @@ var DumpViewer = function(){
$.ajax({
url: util.getCurrentHost() + '/jolokia/exec/org.eclipse.virgo.kernel:type=Medic,name=DumpInspector/deleteDump/' + dumpId,
dataType: 'json',
+ cache: false,
success: function (response){
if(dumpListItem == self.selectedDump){
self.selectedDump = null;

Back to the top