added popup form for creating resources for JavaScript bookmark
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@2265 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
209f5402f2
commit
525ec7d5ac
1 changed files with 10 additions and 0 deletions
|
@ -369,6 +369,16 @@ class NodeView(BaseView):
|
|||
|
||||
actions = dict(portlet=getPortletActions)
|
||||
|
||||
@Lazy
|
||||
def popupCreateObjectForm(self):
|
||||
return ("javascript:function%%20openDialog(url){"
|
||||
"window.open('%s/create_object_popup.html"
|
||||
"?title='+document.title+'"
|
||||
"&form.type=.loops/concepts/note&linkUrl='+url,"
|
||||
"'loops_dialog','width=650,height=450,left=300,top=200');;"
|
||||
"}"
|
||||
"openDialog(window.location.href);" % self.topMenu.url)
|
||||
|
||||
@Lazy
|
||||
def hasEditableTarget(self):
|
||||
return IResource.providedBy(self.virtualTargetObject)
|
||||
|
|
Loading…
Add table
Reference in a new issue