changeset 2690:ad0b61d9177a beta

fix leftover error coloring after ypjax failure
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 04 Aug 2012 19:42:00 +0200
parents 73cfc54c87d5
children e70be4cf96e8
files rhodecode/public/css/style.css rhodecode/public/js/rhodecode.js
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/public/css/style.css	Sat Aug 04 19:28:38 2012 +0200
+++ b/rhodecode/public/css/style.css	Sat Aug 04 19:42:00 2012 +0200
@@ -3220,6 +3220,10 @@
 	
 }
 
+.error_red {
+	color:red;
+}
+
 .error_msg {
 	background-color: #c43c35;
 	background-repeat: repeat-x;
--- a/rhodecode/public/js/rhodecode.js	Sat Aug 04 19:28:38 2012 +0200
+++ b/rhodecode/public/js/rhodecode.js	Sat Aug 04 19:42:00 2012 +0200
@@ -217,9 +217,8 @@
 		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);