Indefero

Indefero Commit Details


Date:2012-04-27 08:57:18 (12 years 7 months ago)
Author:Simon Holywell
Branch:develop
Commit:158f9288d30a11253e3b82080494d904ae3e8b1f
Parents: e883f22790a2c1b95beb88c21e8db64861bce9c3
Message:Try to avoid anchors with '#' as target and use 'javascript:void(0);' instead

Changes:

File differences

src/IDF/templates/idf/issues/create.html
7373
7474
7575
76
76
7777
7878
7979
......
140140
141141
142142
143
144143
145144
146145
{foreach $date_shortcuts as $time_span => $shortcuts}
<dt>{$time_span}</dt>
{foreach $shortcuts as $title => $date}
<dd><a href="#" rel="{$date}" class="due_dtime_shortcut">{$title}</a></dd>
<dd><a href="javascript:void(0);" rel="{$date}" class="due_dtime_shortcut">{$title}</a></dd>
{/foreach}
{/foreach}
</dl>
});
$(".due_dtime_shortcut").click(function(){
$('#id_due_dtime').val($(this).attr('rel'));
return false;
});
// Hide the upload forms, we insert before the first attach file
// row an "Attach File" little link.
src/IDF/templates/idf/issues/view.html
138138
139139
140140
141
141
142142
143143
144144
......
244244
245245
246246
247
248247
249248
250249
{foreach $date_shortcuts as $time_span => $shortcuts}
<dt>{$time_span}</dt>
{foreach $shortcuts as $title => $date}
<dd><a href="#" rel="{$date}" class="due_dtime_shortcut">{$title}</a></dd>
<dd><a href="javascript:void(0);" rel="{$date}" class="due_dtime_shortcut">{$title}</a></dd>
{/foreach}
{/foreach}
</dl>
});
$(".due_dtime_shortcut").click(function(){
$('#id_due_dtime').val($(this).attr('rel'));
return false;
});
// Hide the upload forms, we insert before the first attach file
// row an "Attach File" little link.

Archive Download the corresponding diff file

Page rendered in 0.07656s using 13 queries.