Changeset - 78694f9acd31
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2012-08-05 00:56:00
marcin@python-works.com
Add cache to ypjax calls to overcome chrome caching issues of requests
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/public/js/rhodecode.js
Show inline comments
 
@@ -216,13 +216,14 @@ function ypjax(url,container,s_call,f_ca
 
	YUC.asyncRequest(method,url,{
 
		success:s_wrapper,
 
		failure:function(o){
 
			console.log(o);
 
			YUD.get(container).innerHTML='<span class="error_red">ERROR: {0}</span>'.format(o.status);
 
			YUD.setStyle(container,'opacity','1.0');
 
		}
 
		},
 
		cache:false
 
	},args);
 
	
 
};
 

	
 
var ajaxPOST = function(url,postData,success) {
 
	// Set special header for ajax == HTTP_X_PARTIAL_XHR
0 comments (0 inline, 0 general)