# HG changeset patch # User Mads Kiilerich # Date 2014-07-02 23:03:27 # Node ID f0e518891d69f2f608b65daa947690e10e2493f4 # Parent 330d935054cab5bee24ce4255d66c240e3cb4485 rhodecode.js: break the loop when fileBrowserListeners search is truncated 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 @@ -923,6 +923,7 @@ var fileBrowserListeners = function(curr } if(match.length >= matches_max){ match.push('{0}'.format(_TM['Search truncated'])); + break; } } }