Changeset 138:e6beb338f85f in documentViewer


Ignore:
Timestamp:
Jul 15, 2010, 1:16:52 PM (14 years ago)
Author:
abukhman
Branch:
default
Message:

onDblclick to onClick

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MpdlXmlTextServer.py

    r134 r138  
    9797                            l.setAttributeNS(None, 'target', '_blank')
    9898                            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, 'onDblclick', 'popupWin.focus();') 
     99                            l.setAttributeNS(None, 'onClick', 'popupWin.focus();') 
    100100                pagedivs = pagedom.xpath("//div[@class='queryResultMorphExpansion']")               
    101101                return serializeNode(pagenode)       
     
    114114                            l.setAttributeNS(None, 'target', '_blank')
    115115                            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, 'onDblclick', 'popupWin.focus();')
     116                            l.setAttributeNS(None, 'onClick', 'popupWin.focus();')
    117117                        if href.startswith('../lt/lemma.xql'):
    118118                            hrefNode.nodeValue = href.replace('../lt/lemma.xql','%s/template/head_main_lemma'%selfurl)       
    119119                            l.setAttributeNS(None, 'target', '_blank')
    120120                            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, 'onDblclick', 'popupWin.focus();')
     121                            l.setAttributeNS(None, 'onClick', 'popupWin.focus();')
    122122                return serializeNode(pagenode)     
    123123        return "no text here"   
     
    204204                            l.setAttributeNS(None, 'target', '_blank')
    205205                            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, 'onDblclick', 'popupWin.focus();')     
     206                            l.setAttributeNS(None, 'onClick', 'popupWin.focus();')     
    207207                        if href.startswith('lt/lemma.xql'):   
    208208                            selfurl = self.absolute_url()
     
    210210                            l.setAttributeNS(None, 'target', '_blank')
    211211                            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, 'onDblclick', 'popupWin.focus();')   
     212                            l.setAttributeNS(None, 'onClick', 'popupWin.focus();')   
    213213                        if href.startswith('#note-'):
    214214                            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.