# HG changeset patch # User Marcin Kuzminski # Date 2011-11-03 00:52:38 # Node ID 96ae22a4e9634cbf465065f2d8bfd3c39062a7eb # Parent e0383813f3e224d8aa2f1fc14a430b07396edd59 Display error on ypjax fail diff --git a/rhodecode/public/js/rhodecode.js b/rhodecode/public/js/rhodecode.js --- a/rhodecode/public/js/rhodecode.js +++ b/rhodecode/public/js/rhodecode.js @@ -172,7 +172,10 @@ function ypjax(url,container,s_call,f_ca YUC.asyncRequest(method,url,{ success:s_wrapper, failure:function(o){ - console.log(o) + console.log(o); + YUD.get(container).innerHTML='ERROR'; + YUD.setStyle(container,'opacity','1.0'); + YUD.setStyle(container,'color','red'); } },args); diff --git a/rhodecode/templates/repo_switcher_list.html b/rhodecode/templates/repo_switcher_list.html --- a/rhodecode/templates/repo_switcher_list.html +++ b/rhodecode/templates/repo_switcher_list.html @@ -11,12 +11,12 @@ name="filter" size="15" id="q_filter_rs" %if repo['dbrepo']['private']:
  • - ${_('Private repository')} + ${_('Private repository')} ${h.link_to(repo['name'],h.url('summary_home',repo_name=repo['name']),class_="repo_name %s" % repo['dbrepo']['repo_type'])}
  • %else:
  • - ${_('Public repository')} + ${_('Public repository')} ${h.link_to(repo['name'],h.url('summary_home',repo_name=repo['name']),class_="repo_name %s" % repo['dbrepo']['repo_type'])}
  • %endif