srchub

srchub Commit Details


Date:2014-12-21 16:43:00 (10 years 10 hours ago)
Author:Natalie Adams
Branch:master
Commit:ec8d6e93ea8ce64691fb820ef276df4aa22bd369
Parents: 7a8b6343f85e60e663e089aece9530322bf61ea4
Message:Fixing issue 78

Changes:

File differences

indefero/src/IDF/templates/idf/issues/search.html
77
88
99
10
1011
1112
1213
......
1718
1819
1920
20
21
2122
2223
2324
<p><a href="{$url}"><img style="vertical-align: text-bottom;" src="{media '/idf/img/add.png'}" alt="+" align="bottom" /></a> <a href="{$url}">{trans 'New Issue'}</a></p>{/if}
{/block}
{block context}
{aurl 'open_url', 'IDF_Views_Issue::searchStatus', array($project.shortname, 'open'), array('q' => $query)}
{aurl 'closed_url', 'IDF_Views_Issue::searchStatus', array($project.shortname, 'closed'), array('q' => $query)}
{blocktrans}
<p><strong>Found open issues:</strong> <a href="{$open_url}">{$open}</a></p>
<p><strong>Found closed issues:</strong> <a href="{$closed_url}">{$closed}</a></p>{/blocktrans}
{if $tag !== null}
{if $tag != null}
{blocktrans}<p><strong>Label:</strong>
<a href="{$open_url}" class="label"><strong>{$tag.class}:</strong>{$tag.name}</a></p>{/blocktrans}
{else}
indefero/src/IDF/templates/idf/main-menu.html
2222
2323
2424
25
26
27
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
25
6026
6127
</ul>
{if $allProjects.count() != 0}
<script type="text/javascript" charset="utf-8">
{literal}
$(document).ready(function() {
$("#prjname").keydown(function(ev) {
if(ev.which === 13) {
window.location.replace($('.projectitem :visible').first().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();
$("#prjname").focus();
}).bind('mouseleave', function(ev) {
$(this).find('ul').hide();
});
});
{/literal}
</script>
<script src="{media '/idf/js/projectsearch.js'}" type="text/javascript" charset="utf-8"></script>
{/if}
indefero/www/media/idf/js/projectsearch.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
$(document).ready(function() {
$("#prjname").keydown(function(ev) {
if(ev.which === 13) {
window.location.replace($('.projectitem :visible').first().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();
$("#prjname").focus();
}).bind('mouseleave', function(ev) {
$(this).find('ul').hide();
});
});

Archive Download the corresponding diff file

Branches

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