Changeset - e1ecc8622884
[Not reviewed]
default
0 2 0
Mads Kiilerich - 12 years ago 2013-06-12 21:47:17
madski@unity3d.com
Grafted from: 3b964b6e5799
group index: quick search should not search the common part of repo names
2 files changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
rhodecode/templates/admin/repos_groups/repos_groups.html
Show inline comments
 
@@ -16,8 +16,8 @@
 

	
 
<%def name="page_nav()">
 
    ${self.menu('repositories')}
 
</%def>
 

	
 
<%def name="main()">
 
        <%include file="/index_base.html" args="parent=self,short_repo_names=True"/>
 
        <%include file="/index_base.html" args="parent=self,group_name=c.group.group_name"/>
 
</%def>
rhodecode/templates/index_base.html
Show inline comments
 
<%page args="parent" />
 
<%page args="parent,group_name=''" />
 
    <div class="box">
 
        <!-- box / title -->
 
        <div class="title">
 
            <h5>
 
            <input class="q_filter_box" id="q_filter" size="15" type="text" name="filter" placeholder="${_('quick filter...')}" value=""/> ${parent.breadcrumbs()} <span id="repo_count">0</span> ${_('repositories')}
 
            </h5>
 
@@ -101,13 +101,13 @@
 
                filtered = [],
 
                i,l;
 

	
 
            if (req) {
 
                req = req.toLowerCase();
 
                for (i = 0; i<data.length; i++) {
 
                    var pos = data[i].raw_name.toLowerCase().indexOf(req)
 
                    var pos = data[i].raw_name.toLowerCase().indexOf(req, ${len(group_name)})
 
                    if (pos != -1) {
 
                        filtered.push(data[i]);
 
                    }
 
                }
 
                res.results = filtered;
 
            }
0 comments (0 inline, 0 general)