[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [PATCH] [dmd] avoid scrolling up on "hide" links



On 02/09/12 at 11:37 -0300, Antonio Terceiro wrote:
> ---
>  web/dmd.cgi |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/web/dmd.cgi b/web/dmd.cgi
> index 9bbb484..439fff8 100755
> --- a/web/dmd.cgi
> +++ b/web/dmd.cgi
> @@ -174,7 +174,7 @@ if cgi.params != {}
>      puts "<tr id='#{t[:shortname]}'><td>#{t[:type]}</td>"
>      puts "<td class=\"left\"><a href=\"http://packages.qa.debian.org/#{t[:source]}\";>#{src_reason(t[:source])}</a></td>"
>      puts "<td class=\"left\">#{t[:description]}</td>"
> -    puts "<td><a href=\"#\" onclick=\"hide_todo('#{t[:shortname]}')\">hide</a></td>"
> +    puts "<td><a href=\"#\" onclick=\"hide_todo('#{t[:shortname]}'); return false;\">hide</a></td>"
>    end
>    puts "</tbody></table>"
>    puts "<p align=\"center\"><a href=\"#\" onclick=\"reset_todos()\">show all hidden todos</a></p>"

Applied, thanks! I did not know how to fix that.

Lucas


Reply to: