diff --git a/kallithea/public/js/base.js b/kallithea/public/js/base.js --- a/kallithea/public/js/base.js +++ b/kallithea/public/js/base.js @@ -366,10 +366,9 @@ var _toQueryString = function(o) { * o.responseText * o.responseXML * o.argument - * @param f_call: failure callback * @param args arguments */ -function ypjax(url,container,s_call,f_call,args){ +function ypjax(url,container,s_call,args){ var method='GET'; if(args===undefined){ args=null; diff --git a/kallithea/templates/base/base.html b/kallithea/templates/base/base.html --- a/kallithea/templates/base/base.html +++ b/kallithea/templates/base/base.html @@ -211,10 +211,7 @@ var loaded = YUD.hasClass('branch_tag_switcher_2','loaded'); if(!loaded){ YUD.addClass('branch_tag_switcher_2','loaded'); - ypjax("${h.url('branch_tag_switcher',repo_name=c.repo_name)}",'switch_to_list_2', - function(o){}, - function(o){YUD.removeClass('branch_tag_switcher_2','loaded');} - ,null); + ypjax("${h.url('branch_tag_switcher',repo_name=c.repo_name)}",'switch_to_list_2'); } return false; });