srchub

srchub Commit Details


Date:2014-12-19 22:47:32 (10 years 20 days ago)
Author:Natalie Adams
Branch:master
Commit:69c03cef155655ebea470b38dc56b470ac6b5942
Parents: ba89ae6f47aa3214544589bf0d0fb8352dcfaac4
Message:Fixing issue 69

Changes:

File differences

indefero/src/IDF/templates/idf/main-menu.html
1111
1212
1313
14
15
14
15
16
17
18
1619
1720
1821
......
2225
2326
2427
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
2560
2661
2762
<li><a href="{url 'IDF_Views::index'}">{trans 'Home'}</a></li>
{/if}<li id="project-list"><a href="{url 'IDF_Views::listProjects'}">{trans 'Project List'} &#x25be;</a>
{if $allProjects.count() != 0}
<ul>{foreach $allProjects as $p}
<li><a href="{url 'IDF_Views_Project::home', array($p.shortname)}"><img class="logo" src="{url 'IDF_Views_Project::logo', array($p.shortname)}" alt="{trans 'Project logo'}" />{if $p.private}<img class="lock" src="{media '/idf/img/lock.png'}" alt="{trans 'Private project'}" />{/if}{$p}</a></li>
<ul class="prjlistclass">
    <li id="searchkeep"><input size="15" type="text" id="prjname" name="prjname" value="Project Name..." /></li>
    {foreach $allProjects as $p}
<li class="projectitem"><a href="{url 'IDF_Views_Project::home', array($p.shortname)}"><img class="logo" src="{url 'IDF_Views_Project::logo', array($p.shortname)}" alt="{trans 'Project logo'}" />{if $p.private}<img class="lock" src="{media '/idf/img/lock.png'}" alt="{trans 'Private project'}" />{/if}{$p}</a></li>
{/foreach}</ul>
{/if}</li>{if $isAdmin}<li><a href="{url 'IDF_Views_Admin::forge'}">{trans 'Forge Management'}</a></li>{/if}<li>
<a href="{url 'IDF_Views::faq'}" title="{trans 'Help and accessibility features'}">{trans 'Help'}</a></li>
<script type="text/javascript" charset="utf-8">
{literal}
$(document).ready(function() {
    $("#prjname").on("click", function() {
       if ($("#prjname").val() == "Project Name...")
           $("#prjname").val("");
    });
    $("#prjname").keydown(function(ev) {
        if(ev.which === 13) {
            var elements = $('.projectitem :visible');
            var count = elements.size();
            if (count > 0 && (count / 2) == 1)
            {
                window.location.replace($('.projectitem :visible').attr("href"));
            }
        }
    });
    $('#prjname').keyup(function(){
        var valThis = $(this).val().toLowerCase();
        if(valThis == ""){
            $('.prjlistclass > li').show();
        } else {
            $('.prjlistclass > li').each(function(){
                if ($(this).attr('id') && $(this).attr('id') == "searchkeep")
                    return true;
                var text = $(this).text().toLowerCase();
                (text.indexOf(valThis) >= 0) ? $(this).show() : $(this).hide();
            });
        };
    });
  $('#project-list').bind('mouseenter', function(ev) {
    $(this).find('ul').show();
  }).bind('mouseleave', function(ev) {

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.08647s using 20 queries.