[Swift-commit] r7030 - in trunk/resources/httpmonitor: . js
hategan at ci.uchicago.edu
hategan at ci.uchicago.edu
Tue Sep 3 23:26:29 CDT 2013
Author: hategan
Date: 2013-09-03 23:26:29 -0500 (Tue, 03 Sep 2013)
New Revision: 7030
Modified:
trunk/resources/httpmonitor/index.html
trunk/resources/httpmonitor/js/plots.js
Log:
http monitor: removed debugging text at bottom of screen; minumum plot area size for plots page resize plot area when a plot is created
Modified: trunk/resources/httpmonitor/index.html
===================================================================
--- trunk/resources/httpmonitor/index.html 2013-09-03 22:25:46 UTC (rev 7029)
+++ trunk/resources/httpmonitor/index.html 2013-09-04 04:26:29 UTC (rev 7030)
@@ -118,8 +118,6 @@
$("#pbi-main").progressbar("option", "max", parseInt(data["total"]));
$("#pbi-main").progressbar("option", "value", parseInt(data["completed"]));
$(".pbl", "#pbi-main").text(data["progressString"]);
-
- $("#error-text").html(s);
}
}
</script>
Modified: trunk/resources/httpmonitor/js/plots.js
===================================================================
--- trunk/resources/httpmonitor/js/plots.js 2013-09-03 22:25:46 UTC (rev 7029)
+++ trunk/resources/httpmonitor/js/plots.js 2013-09-04 04:26:29 UTC (rev 7030)
@@ -1,6 +1,9 @@
var DEFAULT_PLOT_COLORS = ["#bf5b17", "#33a02c", "#386cb0", "#f0027f", "#ffff99", "#fdc086",
"#beaed4", "#666666", "#7fc97f", "#ff7f00", "#fdbf6f", "#e31a1c"];
+var MIN_AREA_WIDTH = 640;
+var MIN_AREA_HEIGHT = 200;
+
function addPlot() {
var index = document.currentPlotIndex++;
$("#plots").append('\
@@ -190,6 +193,8 @@
document.plots[index] = plot;
plot.setupGrid();
plot.draw();
+
+ resizePlotsContainer();
}
function removePlot(index) {
@@ -704,6 +709,13 @@
}
}
+ if (w < MIN_AREA_WIDTH) {
+ w = MIN_AREA_WIDTH;
+ }
+ if (h < MIN_AREA_HEIGHT) {
+ h = MIN_AREA_HEIGHT;
+ }
+
$("#tabs").css("width", (w + 8) + "px");
$("#tabs").css("height", (h + 8) + "px");
}
More information about the Swift-commit
mailing list