Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Frost2012-11-22 08:27:36 -0500
committerChristopher Frost2012-11-22 08:27:36 -0500
commit333cd1c78edbc28b7f667c6940bfe810d348878b (patch)
tree64e8f5513d9be472a3befb667853d7636abd0ccb /org.eclipse.virgo.management.console
parentccfe68ccd1f19e39f3ee117b3fd9497123a79064 (diff)
downloadorg.eclipse.virgo.kernel-333cd1c78edbc28b7f667c6940bfe810d348878b.tar.gz
org.eclipse.virgo.kernel-333cd1c78edbc28b7f667c6940bfe810d348878b.tar.xz
org.eclipse.virgo.kernel-333cd1c78edbc28b7f667c6940bfe810d348878b.zip
393863 - Creating multiple dumps in close succession produces a list with duplicate entries
Diffstat (limited to 'org.eclipse.virgo.management.console')
-rw-r--r--org.eclipse.virgo.management.console/src/main/webapp/WEB-INF/layouts/dumps.html2
-rw-r--r--org.eclipse.virgo.management.console/src/main/webapp/js/dumps.js26
-rw-r--r--org.eclipse.virgo.management.console/src/main/webapp/styles/dumps.css4
3 files changed, 22 insertions, 10 deletions
diff --git a/org.eclipse.virgo.management.console/src/main/webapp/WEB-INF/layouts/dumps.html b/org.eclipse.virgo.management.console/src/main/webapp/WEB-INF/layouts/dumps.html
index b79421a2..be789fae 100644
--- a/org.eclipse.virgo.management.console/src/main/webapp/WEB-INF/layouts/dumps.html
+++ b/org.eclipse.virgo.management.console/src/main/webapp/WEB-INF/layouts/dumps.html
@@ -8,7 +8,7 @@
<div class="control-cap-left"></div>
<div class="controls">
<div class="button" onclick="dumpViewer.createDump()">
- <div class="button-cap-left-blue"></div><div class="button-text">Create Dump</div><div class="button-cap-right-blue"></div>
+ <div class="button-cap-left-blue"></div><div id="create-dump-button" class="button-text">Create Dump</div><div class="button-cap-right-blue"></div>
</div>
</div>
<div class="control-cap-right"></div>
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 88f95b4d..9d73fd2e 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
@@ -29,6 +29,8 @@ function pageinit(){
var DumpViewer = function(){
var self = this;
+
+ self.loadingDump = false;
self.selectedDump = null;
@@ -193,15 +195,21 @@ var DumpViewer = function(){
//CREATE AND DELETE DUMPS
self.createDump = function(){
- $('#dumps').append($('<div />', {'class' : 'spinner-small'}));
- $.ajax({
- url: util.getCurrentHost() + '/jolokia/exec/org.eclipse.virgo.kernel:type=Medic,name=DumpInspector/createDump',
- dataType: 'json',
- cache: false,
- success: function (response){
- self.displayDumps();
- }
- });
+ if(!self.loadingDump){
+ self.loadingDump = true;
+ $('#create-dump-button').addClass('grey-out');
+ $('#dumps').append($('<div />', {'class' : 'spinner-small'}));
+ $.ajax({
+ url: util.getCurrentHost() + '/jolokia/exec/org.eclipse.virgo.kernel:type=Medic,name=DumpInspector/createDump',
+ dataType: 'json',
+ cache: false,
+ success: function (response){
+ self.loadingDump = false;
+ $('#create-dump-button').removeClass('grey-out');
+ self.displayDumps();
+ }
+ });
+ }
};
self.deleteDump = function(event){
diff --git a/org.eclipse.virgo.management.console/src/main/webapp/styles/dumps.css b/org.eclipse.virgo.management.console/src/main/webapp/styles/dumps.css
index 85943cf6..08c3aa06 100644
--- a/org.eclipse.virgo.management.console/src/main/webapp/styles/dumps.css
+++ b/org.eclipse.virgo.management.console/src/main/webapp/styles/dumps.css
@@ -18,6 +18,10 @@
margin-top: 0px;
}
+.grey-out {
+ color: #AAAAAA !important;
+}
+
#dumps, #dump-items {
max-height: 200px;
min-height: 100px;

Back to the top