##// END OF EJS Templates
Display error on ypjax fail
marcink -
r1651:96ae22a4 beta
parent child Browse files
Show More
@@ -172,7 +172,10 b' function ypjax(url,container,s_call,f_ca'
172 YUC.asyncRequest(method,url,{
172 YUC.asyncRequest(method,url,{
173 success:s_wrapper,
173 success:s_wrapper,
174 failure:function(o){
174 failure:function(o){
175 console.log(o)
175 console.log(o);
176 YUD.get(container).innerHTML='ERROR';
177 YUD.setStyle(container,'opacity','1.0');
178 YUD.setStyle(container,'color','red');
176 }
179 }
177 },args);
180 },args);
178
181
@@ -11,12 +11,12 b' name="filter" size="15" id="q_filter_rs"'
11
11
12 %if repo['dbrepo']['private']:
12 %if repo['dbrepo']['private']:
13 <li>
13 <li>
14 <img src="${h.url("/images/icons/lock.png")}" alt="${_('Private repository')}" class="repo_switcher_type"/>
14 <img src="${h.url('/images/icons/lock.png')}" alt="${_('Private repository')}" class="repo_switcher_type"/>
15 ${h.link_to(repo['name'],h.url('summary_home',repo_name=repo['name']),class_="repo_name %s" % repo['dbrepo']['repo_type'])}
15 ${h.link_to(repo['name'],h.url('summary_home',repo_name=repo['name']),class_="repo_name %s" % repo['dbrepo']['repo_type'])}
16 </li>
16 </li>
17 %else:
17 %else:
18 <li>
18 <li>
19 <img src="${h.url("/images/icons/lock_open.png")}" alt="${_('Public repository')}" class="repo_switcher_type" />
19 <img src="${h.url('/images/icons/lock_open.png')}" alt="${_('Public repository')}" class="repo_switcher_type" />
20 ${h.link_to(repo['name'],h.url('summary_home',repo_name=repo['name']),class_="repo_name %s" % repo['dbrepo']['repo_type'])}
20 ${h.link_to(repo['name'],h.url('summary_home',repo_name=repo['name']),class_="repo_name %s" % repo['dbrepo']['repo_type'])}
21 </li>
21 </li>
22 %endif
22 %endif
General Comments 0
You need to be logged in to leave comments. Login now