Changeset 138:e6beb338f85f in documentViewer
- Timestamp:
- Jul 15, 2010, 1:16:52 PM (15 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
MpdlXmlTextServer.py
r134 r138 97 97 l.setAttributeNS(None, 'target', '_blank') 98 98 l.setAttributeNS(None, 'onClick',"popupWin = window.open(this.href, 'contacts', 'location,width=500,height=600,top=180, left=400, scrollbars=1'); return false;") 99 l.setAttributeNS(None, 'on Dblclick', 'popupWin.focus();')99 l.setAttributeNS(None, 'onClick', 'popupWin.focus();') 100 100 pagedivs = pagedom.xpath("//div[@class='queryResultMorphExpansion']") 101 101 return serializeNode(pagenode) … … 114 114 l.setAttributeNS(None, 'target', '_blank') 115 115 l.setAttributeNS(None, 'onClick',"popupWin = window.open(this.href, 'contacts', 'location,width=500,height=600,top=180, left=400, scrollbars=1'); return false;") 116 l.setAttributeNS(None, 'on Dblclick', 'popupWin.focus();')116 l.setAttributeNS(None, 'onClick', 'popupWin.focus();') 117 117 if href.startswith('../lt/lemma.xql'): 118 118 hrefNode.nodeValue = href.replace('../lt/lemma.xql','%s/template/head_main_lemma'%selfurl) 119 119 l.setAttributeNS(None, 'target', '_blank') 120 120 l.setAttributeNS(None, 'onClick',"popupWin = window.open(this.href, 'contacts', 'location,width=500,height=600,top=180, left=400, scrollbars=1'); return false;") 121 l.setAttributeNS(None, 'on Dblclick', 'popupWin.focus();')121 l.setAttributeNS(None, 'onClick', 'popupWin.focus();') 122 122 return serializeNode(pagenode) 123 123 return "no text here" … … 204 204 l.setAttributeNS(None, 'target', '_blank') 205 205 l.setAttributeNS(None, 'onClick',"popupWin = window.open(this.href, 'contacts', 'location,width=500,height=600,top=180, left=700, scrollbars=1'); return false;") 206 l.setAttributeNS(None, 'on Dblclick', 'popupWin.focus();')206 l.setAttributeNS(None, 'onClick', 'popupWin.focus();') 207 207 if href.startswith('lt/lemma.xql'): 208 208 selfurl = self.absolute_url() … … 210 210 l.setAttributeNS(None, 'target', '_blank') 211 211 l.setAttributeNS(None, 'onClick',"popupWin = window.open(this.href, 'contacts', 'location,width=500,height=600,top=180, left=700, scrollbars=1'); return false;") 212 l.setAttributeNS(None, 'on Dblclick', 'popupWin.focus();')212 l.setAttributeNS(None, 'onClick', 'popupWin.focus();') 213 213 if href.startswith('#note-'): 214 214 hrefNode.nodeValue = href.replace('#note-',"?url=%s&viewMode=%s&tocMode=%s&tocPN=%s&pn=%s#note-"%(url,viewMode,tocMode,tocPN,pn))
Note: See TracChangeset
for help on using the changeset viewer.