Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
Change the revision on the javascript and css static resources to ref…
Browse files Browse the repository at this point in the history
…lect 4.11 version from 4.10 version. This strategy enables long caching on static resources while enabling cache busting behaviour between revision # changes.
  • Loading branch information
mtho11 committed Apr 23, 2014
1 parent f9d317f commit 949ad3c
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
</generate-with>

<script src="/coregui/js/moment-2.0.0.min.js"/>
<script src="/coregui/js/rhq-4.10.0.js"/>
<script src="/coregui/js/rhq-4.11.0.js"/>
<!-- External javascript libraries -->
<!-- jquery.sparkline requires jquery.
-->
Expand Down
4 changes: 2 additions & 2 deletions modules/enterprise/gui/coregui/src/main/webapp/CoreGUI.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
<!-- support internationalized characters -->
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>

<link rel="stylesheet" href="CoreGUI-4.10.0.css">
<link rel="stylesheet" href="CoreGUI-4.11.0.css">
<!-- for d3 charting -->
<link rel="stylesheet" href="css/charts-4.10.0.css">
<link rel="stylesheet" href="css/charts-4.11.0.css">

<script type="text/javascript">
var search = location.search;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use strict";
/**
* RHQ Charting Javascript Functions.
*/
Expand Down Expand Up @@ -41,7 +42,6 @@
* @constructor
*/
var ChartContext = function (chartId, chartHeight, metricsData, xAxisLabel, chartTitle, yAxisUnits, minChartTitle, avgChartTitle, peakChartTitle, dateLabel, timeLabel, downLabel, unknownLabel, noDataLabel, hoverStartLabel, hoverEndLabel, hoverPeriodLabel, hoverBarLabel, chartHoverTimeFormat, chartHoverDateFormat, isPortalGraph, portalId, buttonBarDateTimeFormat, singleValueLabel, chartXaxisTimeFormatHours, chartXaxisTimeFormatHoursMinutes, hideLegend, chartAverage, chartMin, chartMax, isSummaryGraph) {
"use strict";
if (!(this instanceof ChartContext)) {
throw new Error("ChartContext function cannot be called as a function.");
}
Expand Down Expand Up @@ -108,7 +108,6 @@ var ChartContext = function (chartId, chartHeight, metricsData, xAxisLabel, char
* @constructor
*/
AvailChartContext = function (chartId, availData, dateLabel, timeLabel, hoverStartLabel, hoverBarLabel, availabilityLabel, chartHoverTimeFormat, chartHoverDateFormat, chartTitle, chartUpLabel, chartDownLabel, chartXaxisTimeFormatHours, chartXaxisTimeFormatHoursMinutes) {
"use strict";
if (!(this instanceof AvailChartContext)) {
throw new Error("AvailChartContext function cannot be called as a function.");
}
Expand Down Expand Up @@ -138,17 +137,13 @@ var ChartContext = function (chartId, chartHeight, metricsData, xAxisLabel, char
* @constructor
*/
GraphDateContext = function (startDate, endDate) {
"use strict";
if (!(this instanceof GraphDateContext)) {
throw new Error("GraphDateContext function cannot be called as a function.");
}
this.startDate = startDate;
this.endDate = endDate;
},
rhqCommon = (function () {
"use strict";


var timeFormat = function (formats) {
return function(date) {
var i = formats.length - 1, f = formats[i];
Expand Down

0 comments on commit 949ad3c

Please sign in to comment.