From: Stéphane Jacob Date: Mon, 9 Apr 2012 21:53:35 +0000 (+0200) Subject: Fixes clicks on main jobTree titles (Closes #1589). X-Git-Tag: xorg/1.1.5~16 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=f04adc69f40a3b9b57e439159faada4a3715b3bb;p=platal.git Fixes clicks on main jobTree titles (Closes #1589). Signed-off-by: Stéphane Jacob --- diff --git a/ChangeLog b/ChangeLog index 1fef152..9436373 100644 --- a/ChangeLog +++ b/ChangeLog @@ -13,6 +13,9 @@ Bug/Wish: - #1597: Fixes reactivation of broken and suspended emails -JAC - #1601: Displays errors and warnings when adding people to ML -JAC + * Profile: + - #1589: Fixes clicks on main jobTree titles -JAC + * Search: - #1572: Removes remaining results count from queries -JAC - #1574: Correctly displays State corps -GLN diff --git a/templates/include/jobterms.branch.tpl b/templates/include/jobterms.branch.tpl index c527e8a..ecaa13b 100644 --- a/templates/include/jobterms.branch.tpl +++ b/templates/include/jobterms.branch.tpl @@ -29,7 +29,7 @@ {ldelim} "title" : "{$term.name|replace:'"':'\\"'}{if t($filter)} ({$term.nb} {$filter}{if $term.nb > 1}s{/if}){/if}", "attr" : {ldelim} - {if !$jtid}"onclick" : "return false", + {if !$jtid}"href" : "javascript:return false;", {elseif $attrfunc}"href" : "javascript:{$attrfunc}('{$treeid}','{$term.jtid}',\"{$term.full_name|replace:'"':'\\\\\\"'}\")",{/if} "title" : "{$term.full_name|replace:'"':'\\"'}" {rdelim}