##// END OF EJS Templates
fix leftover error coloring after ypjax failure
marcink -
r2690:ad0b61d9 beta
parent child Browse files
Show More
@@ -3220,6 +3220,10 table.code-browser .submodule-dir {
3220
3220
3221 }
3221 }
3222
3222
3223 .error_red {
3224 color:red;
3225 }
3226
3223 .error_msg {
3227 .error_msg {
3224 background-color: #c43c35;
3228 background-color: #c43c35;
3225 background-repeat: repeat-x;
3229 background-repeat: repeat-x;
@@ -217,9 +217,8 function ypjax(url,container,s_call,f_ca
217 success:s_wrapper,
217 success:s_wrapper,
218 failure:function(o){
218 failure:function(o){
219 console.log(o);
219 console.log(o);
220 YUD.get(container).innerHTML='ERROR '+o.status;
220 YUD.get(container).innerHTML='<span class="error_red">ERROR: {0}</span>'.format(o.status);
221 YUD.setStyle(container,'opacity','1.0');
221 YUD.setStyle(container,'opacity','1.0');
222 YUD.setStyle(container,'color','red');
223 }
222 }
224 },args);
223 },args);
225
224
General Comments 0
You need to be logged in to leave comments. Login now