Changeset - ad0b61d9177a
[Not reviewed]
beta
0 2 0
Marcin Kuzminski - 13 years ago 2012-08-04 19:42:00
marcin@python-works.com
fix leftover error coloring after ypjax failure
2 files changed with 5 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rhodecode/public/css/style.css
Show inline comments
 
@@ -3217,12 +3217,16 @@ table.code-browser .submodule-dir {
 
}
 
 
.flash_msg ul {
 
	
 
}
 
 
.error_red {
 
	color:red;
 
}
 
 
.error_msg {
 
	background-color: #c43c35;
 
	background-repeat: repeat-x;
 
	background-image: -khtml-gradient(linear, left top, left bottom, from(#ee5f5b), to(#c43c35) );
 
	background-image: -moz-linear-gradient(top, #ee5f5b, #c43c35);
 
	background-image: -ms-linear-gradient(top, #ee5f5b, #c43c35);
rhodecode/public/js/rhodecode.js
Show inline comments
 
@@ -214,15 +214,14 @@ function ypjax(url,container,s_call,f_ca
 
	})()	
 
	YUD.setStyle(container,'opacity','0.3');
 
	YUC.asyncRequest(method,url,{
 
		success:s_wrapper,
 
		failure:function(o){
 
			console.log(o);
 
			YUD.get(container).innerHTML='ERROR '+o.status;
 
			YUD.get(container).innerHTML='<span class="error_red">ERROR: {0}</span>'.format(o.status);
 
			YUD.setStyle(container,'opacity','1.0');
 
			YUD.setStyle(container,'color','red');
 
		}
 
	},args);
 
	
 
};
 

	
 
var ajaxPOST = function(url,postData,success) {
0 comments (0 inline, 0 general)