make sure reports ajax calls dont cache

This commit is contained in:
John Woodlock
2012-05-17 17:38:21 +10:00
parent b71778a678
commit 3d8439ac98
4 changed files with 6 additions and 4 deletions
@@ -388,6 +388,7 @@
// crossDomain : true,
dataType : 'json',
data : form_data,
cache: false,
success : function(data, textStatus, jqXHR) {
currentEditPopup.dialogDiv.dialog("close");
viewExtraData(currentEditPopup.baseUrl,
@@ -455,6 +456,7 @@
cache : false,
type : 'GET',
contentType : "application/json; charset=utf-8",
cache: false,
// dataType : 'jsonp',
// crossDomain : true,
dataType : 'json',
@@ -1000,7 +1000,7 @@ alert("needs fixing up, dont rely on data")
dataType: 'json',
contentType: "application/json; charset=utf-8",
crossDomain: false,
cache: true,
cache: false,
beforeSend: function( xhr ) {
xhr.setRequestHeader("Accept", "application/json");
},
@@ -1052,7 +1052,7 @@ function getReportDataNoAuth(rptName, inParams, successFunction, isParameterType
data: inQueryParameters,
contentType: "application/json; charset=utf-8",
crossDomain: false,
// cache: true,
cache: false,
beforeSend: function( xhr ) {
xhr.setRequestHeader("Accept", "application/json");
},
@@ -16,6 +16,6 @@
<script type="text/javascript" src="${resValue}/libs/DataTables-1.8.2/extras/TableTools/media/js/TableTools.min.js"></script>
<script type="text/javascript" src="${resValue}/libs/jquery.i18n.properties-min-1.0.9.js"></script>
<script type="text/javascript" src="${resValue}/libs/OAuthSimple.js"></script>
<script type="text/javascript" src="${resValue}/stretchyreporting/stretchyreporting-0.97.js"></script>
<script type="text/javascript" src="${resValue}/stretchyreporting/stretchyreporting-0.98.js"></script>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
@@ -34,7 +34,7 @@
<script type="text/javascript" src="${resValue}/libs/jquery.views.js"></script>
<script type="text/javascript" src="${resValue}/libs/jquery.observable.min.js"></script>
<script type="text/javascript" src="${resValue}/libs/globalize/globalize.js"></script>
<script type="text/javascript" src="${resValue}/stretchydata-0.92.js"></script>
<script type="text/javascript" src="${resValue}/stretchydata-0.93.js"></script>
<c:choose>
<c:when test="${not empty language}">