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 @@ -611,8 +611,8 @@ var renderInlineComments = function(file } -var fileBrowserListeners = function(current_url, node_list_url, url_base, - truncated_lbl, nomatch_lbl){ +var fileBrowserListeners = function(current_url, node_list_url, url_base){ + var current_url_branch = +"?branch=__BRANCH__"; var url = url_base; var node_url = node_list_url; @@ -641,7 +641,7 @@ var fileBrowserListeners = function(curr YUC.initHeader('X-PARTIAL-XHR',true); YUC.asyncRequest('GET',url,{ success:function(o){ - nodes = JSON.parse(o.responseText); + nodes = JSON.parse(o.responseText).nodes; YUD.setStyle('node_filter_box_loading','display','none'); YUD.setStyle('node_filter_box','display',''); n_filter.focus(); @@ -685,9 +685,8 @@ var fileBrowserListeners = function(curr match.push('{2}'.format(t,node_url.replace('__FPATH__',n),n_hl)); } if(match.length >= matches_max){ - match.push('{0}'.format(truncated_lbl)); + match.push('{0}'.format(_TM['search truncated'])); } - } } if(query != ""){ @@ -695,7 +694,7 @@ var fileBrowserListeners = function(curr YUD.setStyle('tbody_filtered','display',''); if (match.length==0){ - match.push('{0}'.format(nomatch_lbl)); + match.push('{0}'.format(_TM['no matching files'])); } YUD.get('tbody_filtered').innerHTML = match.join("");