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:
parent
1efae038f7
commit
aa0d4e4c0c
1 changed files with 6 additions and 3 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue