Revert "CC-4605: Some AJAX calls are cached"
This reverts commit ffca5b42a8
.
This commit is contained in:
parent
e88e3a3df2
commit
d5c2c37a3e
|
@ -360,7 +360,7 @@ function controlSwitchLight(){
|
|||
}
|
||||
|
||||
function getScheduleFromServer(){
|
||||
$.ajax({ cache: false, url: "/Schedule/get-current-playlist/format/json", dataType:"json", success:function(data){
|
||||
$.ajax({ url: "/Schedule/get-current-playlist/format/json", dataType:"json", success:function(data){
|
||||
parseItems(data.entries);
|
||||
parseSourceStatus(data.source_status);
|
||||
parseSwitchStatus(data.switch_status);
|
||||
|
|
|
@ -479,7 +479,6 @@ var AIRTIME = (function(AIRTIME) {
|
|||
"fnStateSave": function (oSettings, oData) {
|
||||
localStorage.setItem('datatables-library', JSON.stringify(oData));
|
||||
$.ajax({
|
||||
cache: false,
|
||||
url: "/usersettings/set-library-datatable",
|
||||
type: "POST",
|
||||
data: {settings : oData, format: "json"},
|
||||
|
@ -543,7 +542,6 @@ var AIRTIME = (function(AIRTIME) {
|
|||
aoData.push( { name: "type", value: type} );
|
||||
|
||||
$.ajax( {
|
||||
"cache": false,
|
||||
"dataType": 'json',
|
||||
"type": "POST",
|
||||
"url": sSource,
|
||||
|
@ -885,7 +883,6 @@ var AIRTIME = (function(AIRTIME) {
|
|||
}
|
||||
|
||||
request = $.ajax({
|
||||
cache: false,
|
||||
url: "/library/context-menu",
|
||||
type: "GET",
|
||||
data: {id : data.id, type: data.ftype, format: "json", "screen": screen},
|
||||
|
|
|
@ -21,7 +21,6 @@ $(document).ready(function(){
|
|||
click: function() {
|
||||
var url = '/Usersettings/remindme';
|
||||
$.ajax({
|
||||
cache: false,
|
||||
url: url,
|
||||
data: {format:"json"}
|
||||
});
|
||||
|
@ -35,7 +34,6 @@ $(document).ready(function(){
|
|||
click: function() {
|
||||
var url ='/Usersettings/remindme-never';
|
||||
$.ajax({
|
||||
cache: false,
|
||||
url: url,
|
||||
data: {format:"json"}
|
||||
});
|
||||
|
|
|
@ -54,7 +54,6 @@ var AIRTIME = (function(AIRTIME) {
|
|||
aoData.push( { name: "format", value: "json"} );
|
||||
|
||||
$.ajax( {
|
||||
"cache": false,
|
||||
"dataType": 'json',
|
||||
"type": "GET",
|
||||
"url": sSource,
|
||||
|
@ -184,4 +183,4 @@ $(document).ready(function(){
|
|||
oTable.fnDraw();
|
||||
});
|
||||
|
||||
});
|
||||
});
|
|
@ -36,7 +36,6 @@ function confirmCancelShow(show_instance_id){
|
|||
if (confirm('Cancel Current Show?')) {
|
||||
var url = "/Schedule/cancel-current-show";
|
||||
$.ajax({
|
||||
cache: false,
|
||||
url: url,
|
||||
data: {format: "json", id: show_instance_id},
|
||||
success: function(data){
|
||||
|
@ -51,7 +50,6 @@ function confirmCancelRecordedShow(show_instance_id){
|
|||
var url = "/Schedule/cancel-current-show";
|
||||
$.ajax({
|
||||
url: url,
|
||||
cache: false,
|
||||
data: {format: "json", id: show_instance_id},
|
||||
success: function(data){
|
||||
scheduleRefetchEvents(data);
|
||||
|
@ -291,7 +289,7 @@ function alertShowErrorAndReload(){
|
|||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
$.ajax({ cache: false, url: "/Api/calendar-init/format/json", dataType:"json", success:createFullCalendar
|
||||
$.ajax({ url: "/Api/calendar-init/format/json", dataType:"json", success:createFullCalendar
|
||||
, error:function(jqXHR, textStatus, errorThrown){}});
|
||||
|
||||
setInterval(checkCalendarSCUploadStatus, 5000);
|
||||
|
@ -461,7 +459,6 @@ $(document).ready(function() {
|
|||
}
|
||||
|
||||
$.ajax({
|
||||
cache: false,
|
||||
url: "/schedule/make-context-menu",
|
||||
type: "GET",
|
||||
data: {id : data.id, format: "json"},
|
||||
|
|
|
@ -326,7 +326,6 @@ var AIRTIME = (function(AIRTIME){
|
|||
}
|
||||
|
||||
$.ajax({
|
||||
"cache": false,
|
||||
"dataType": "json",
|
||||
"type": "POST",
|
||||
"url": sSource,
|
||||
|
@ -380,7 +379,6 @@ var AIRTIME = (function(AIRTIME){
|
|||
localStorage.setItem('datatables-timeline', JSON.stringify(oData));
|
||||
|
||||
$.ajax({
|
||||
cache: false,
|
||||
url: "/usersettings/set-timeline-datatable",
|
||||
type: "POST",
|
||||
data: {settings : oData, format: "json"},
|
||||
|
@ -1005,7 +1003,6 @@ var AIRTIME = (function(AIRTIME){
|
|||
if (confirm(msg)) {
|
||||
var url = "/Schedule/cancel-current-show";
|
||||
$.ajax({
|
||||
cache: false,
|
||||
url: url,
|
||||
data: {format: "json", id: data.instance},
|
||||
success: function(data){
|
||||
|
@ -1184,7 +1181,6 @@ var AIRTIME = (function(AIRTIME){
|
|||
}
|
||||
|
||||
request = $.ajax({
|
||||
cache: false,
|
||||
url: "/showbuilder/context-menu",
|
||||
type: "GET",
|
||||
data: {id : data.id, format: "json"},
|
||||
|
|
|
@ -168,7 +168,6 @@ AIRTIME = (function(AIRTIME) {
|
|||
schedTable.fnDraw();
|
||||
|
||||
$.ajax({
|
||||
cache: false,
|
||||
url: "/usersettings/set-now-playing-screen-settings",
|
||||
type: "POST",
|
||||
data: {settings : {library : true}, format: "json"},
|
||||
|
@ -193,7 +192,6 @@ AIRTIME = (function(AIRTIME) {
|
|||
schedTable.fnDraw();
|
||||
|
||||
$.ajax({
|
||||
cache: false,
|
||||
url: "/usersettings/set-now-playing-screen-settings",
|
||||
type: "POST",
|
||||
data: {settings : {library : false}, format: "json"},
|
||||
|
@ -259,7 +257,6 @@ AIRTIME = (function(AIRTIME) {
|
|||
}
|
||||
|
||||
$.ajax( {
|
||||
"cache": false,
|
||||
"dataType": "json",
|
||||
"type": "GET",
|
||||
"url": "/showbuilder/check-builder-feed",
|
||||
|
|
|
@ -24,19 +24,13 @@ function populateForm(entries){
|
|||
}
|
||||
|
||||
function rowClickCallback(row_id){
|
||||
$.ajax({ cache: false,
|
||||
url: '/User/get-user-data/id/'+ row_id +'/format/json',
|
||||
dataType:"json",
|
||||
success:function(data){
|
||||
$.ajax({ url: '/User/get-user-data/id/'+ row_id +'/format/json', dataType:"json", success:function(data){
|
||||
populateForm(data.entries);
|
||||
}});
|
||||
}
|
||||
|
||||
function removeUserCallback(row_id, nRow){
|
||||
$.ajax({ cache: false,
|
||||
url: '/User/remove-user/id/'+ row_id +'/format/json',
|
||||
dataType:"text",
|
||||
success:function(data){
|
||||
$.ajax({ url: '/User/remove-user/id/'+ row_id +'/format/json', dataType:"text", success:function(data){
|
||||
var o = $('#users_datatable').dataTable().fnDeleteRow(nRow);
|
||||
}});
|
||||
}
|
||||
|
@ -73,7 +67,6 @@ $(document).ready(function() {
|
|||
"sAjaxSource": "/User/get-user-data-table-info/format/json",
|
||||
"fnServerData": function ( sSource, aoData, fnCallback ) {
|
||||
$.ajax( {
|
||||
"cache": false,
|
||||
"dataType": 'json',
|
||||
"type": "POST",
|
||||
"url": sSource,
|
||||
|
|
Loading…
Reference in New Issue