Try to avoid anchors with '#' as target and use
'javascript:void(0);' instead
This commit is contained in:
parent
e883f22790
commit
158f9288d3
@ -73,7 +73,7 @@
|
|||||||
{foreach $date_shortcuts as $time_span => $shortcuts}
|
{foreach $date_shortcuts as $time_span => $shortcuts}
|
||||||
<dt>{$time_span}</dt>
|
<dt>{$time_span}</dt>
|
||||||
{foreach $shortcuts as $title => $date}
|
{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}
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</dl>
|
</dl>
|
||||||
@ -140,7 +140,6 @@ $(document).ready(function(){
|
|||||||
});
|
});
|
||||||
$(".due_dtime_shortcut").click(function(){
|
$(".due_dtime_shortcut").click(function(){
|
||||||
$('#id_due_dtime').val($(this).attr('rel'));
|
$('#id_due_dtime').val($(this).attr('rel'));
|
||||||
return false;
|
|
||||||
});
|
});
|
||||||
// Hide the upload forms, we insert before the first attach file
|
// Hide the upload forms, we insert before the first attach file
|
||||||
// row an "Attach File" little link.
|
// row an "Attach File" little link.
|
||||||
|
@ -138,7 +138,7 @@
|
|||||||
{foreach $date_shortcuts as $time_span => $shortcuts}
|
{foreach $date_shortcuts as $time_span => $shortcuts}
|
||||||
<dt>{$time_span}</dt>
|
<dt>{$time_span}</dt>
|
||||||
{foreach $shortcuts as $title => $date}
|
{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}
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</dl>
|
</dl>
|
||||||
@ -244,7 +244,6 @@ $(document).ready(function(){
|
|||||||
});
|
});
|
||||||
$(".due_dtime_shortcut").click(function(){
|
$(".due_dtime_shortcut").click(function(){
|
||||||
$('#id_due_dtime').val($(this).attr('rel'));
|
$('#id_due_dtime').val($(this).attr('rel'));
|
||||||
return false;
|
|
||||||
});
|
});
|
||||||
// Hide the upload forms, we insert before the first attach file
|
// Hide the upload forms, we insert before the first attach file
|
||||||
// row an "Attach File" little link.
|
// row an "Attach File" little link.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user