From f04adc69f40a3b9b57e439159faada4a3715b3bb Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Mon, 9 Apr 2012 23:53:35 +0200 Subject: [PATCH] Fixes clicks on main jobTree titles (Closes #1589). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- ChangeLog | 3 +++ templates/include/jobterms.branch.tpl | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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} -- 2.1.4