I'm sorry, it was silly, now it's fine
I did it actually like this, the revision is passed as parameter :
<td class="xwikibuttonlink">
<a
href="$tdoc.getURL('view',"approvedRev=$version$lang#History")"
onclick="if (confirm('Are you sure you want to approve this version
$version?')){return true;} "
Approve</a></td>
then :
#set ($approvedRev = $request.getParameter("approvedRev"))
Have a nice weekend !
2014-05-23 12:25 GMT+01:00 walid yaich <walid.yaich(a)gmail.com>om>:
Hi,
I'm changing historyinline.vm to add a link "Approve", in order to set the
approved revision in the object added to the document.
I added this tag in the foreach : do this make sens ? is it supposed to
work ?
<a href="" onclick="$doc.set("revision",
$version)">Approve</a></td>
In my html source i find :
<a href="" onclick="">Approve</a>
the display is fine but no action, nothing happen
Thanks in advance :)