changeset 4510:a40994692ddb

javascript: ypjax f_call was never used - drop it
author Mads Kiilerich <madski@unity3d.com>
date Mon, 08 Sep 2014 13:38:56 +0200
parents a49953fb84bf
children 8b394bbd551c
files kallithea/public/js/base.js kallithea/templates/base/base.html
diffstat 2 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/public/js/base.js	Mon Sep 08 13:38:56 2014 +0200
+++ b/kallithea/public/js/base.js	Mon Sep 08 13:38:56 2014 +0200
@@ -366,10 +366,9 @@
  *  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;
--- a/kallithea/templates/base/base.html	Mon Sep 08 13:38:56 2014 +0200
+++ b/kallithea/templates/base/base.html	Mon Sep 08 13:38:56 2014 +0200
@@ -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;
       });