srchub

srchub Commit Details


Date:2014-12-19 23:04:10 (10 years 2 days ago)
Author:Natalie Adams
Branch:master
Commit:3c0bc86780ff95d7f93a906c0d9e5cfe0d80e59d
Parents: f8923636134ca03df293253c4d9e3376234830c2
Message:Final behavior change - using placeholder HTML5

Changes:

File differences

indefero/src/IDF/templates/idf/main-menu.html
1313
1414
1515
16
16
1717
1818
1919
......
2626
2727
2828
29
30
31
32
3329
3430
3531
......
5450
5551
5652
53
5754
5855
5956
{if $allProjects.count() != 0}
<ul class="prjlistclass">
<li id="searchkeep"><input size="15" type="text" id="prjname" name="prjname" value="Project Name..." /></li>
<li id="searchkeep"><input size="15" type="text" id="prjname" name="prjname" placeholder="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>
{literal}
$(document).ready(function() {
$("#prjname").on("click", function() {
if ($("#prjname").val() == "Project Name...")
$("#prjname").val("");
});
$("#prjname").keydown(function(ev) {
if(ev.which === 13) {
$('#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.06033s using 14 queries.