make sure dialog gets absolute URL of target when called

git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1398 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2006-10-09 18:51:08 +00:00
parent 1efae038f7
commit aa0d4e4c0c

View file

@ -206,17 +206,20 @@
<metal:actions define-macro="actions">
<tal:actions define="dummy view/registerDojo">
<tal:actions define="dummy view/registerDojo;
url view/virtualTargetUrl">
<div class="menu-2">
<a href="#"
onclick="objectDialog('create', 'create_object.html'); return false;">
onclick="objectDialog('create', 'create_object.html'); return false;"
tal:attributes="onclick string:objectDialog('create', '$url/create_object.html');; return false;;">
Create Resource...
</a>
</div>
<div class="menu-2"
tal:condition="view/hasEditableTarget">
<a href="#"
onclick="objectDialog('edit', 'edit_object.html'); return false;">
onclick="objectDialog('edit', 'edit_object.html'); return false;"
tal:attributes="onclick string:objectDialog('edit', '$url/edit_object.html');; return false;;">
Edit Resource...
</a>
</div>