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
 
@@ -19,5 +19,5 @@
 
</%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">
 
@@ -104,7 +104,7 @@
 
            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]);
 
                    }
0 comments (0 inline, 0 general)