Ignore:
Timestamp:
07/25/07 22:28:40 (5 years ago)
Author:
sam
Message:
  • mutualisation elts bs sm:tooltip et sm:link
  • sm:link/@target='subWindow' début.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/_common/sma/xhtmlTransf/common.xsl.xsl

    r9104 r9401  
    5858        > 
    5959         
     60        <xsl0:import href="bsco:sm/web/sm_WLink.xml.xsl"/> 
     61         
    6062        <xsl0:output method="xml" indent="no"/> 
    6163        <xsl0:namespace-alias stylesheet-prefix="xsl" result-prefix="xsl0"/> 
     
    387389        </xsl0:if> 
    388390        </xsl0:template> 
     391        <xsl0:template match="sm:link[@target='subWindow']" mode="jsAction"> 
     392                <xsl0:variable name="vOptions"> 
     393                        <xsl0:call-template name="linkOptions"/><!-- Dans bsco:sm/web/sm_WLink.xml.xsl --> 
     394                </xsl0:variable>scDynUiMgr.displaySubWindow(&quot;<xsl0:apply-templates mode="jsAction"/>&quot;,&quot;<xsl0:value-of select="si(@windowName, @windowName, 'subWindow')"/>&quot;,&quot;<xsl0:value-of select="$pOptions"/>&quot;); 
     395        </xsl0:template> 
    389396        <xsl0:template match="sm:link[not(@target) or @target='sameWindow']" mode="jsAction">window.location.assign(&quot;<xsl0:apply-templates mode="jsAction"/>&quot;); 
    390397        </xsl0:template> 
    391398        <xsl0:template match="sm:link" mode="jsAction"> 
    392399                <xsl0:variable name="vOptions"> 
    393                         <xsl0:value-of select="si(sm:position/sm:free/@width, concat('width=', sm:position/sm:free/@width, ','), '')"/> 
    394                         <xsl0:value-of select="si(sm:position/sm:free/@height, concat('height=', sm:position/sm:free/@height, ','), '')"/> 
    395                         <xsl0:value-of select="si(sm:position/sm:free/@top, concat('top=', sm:position/sm:free/@top, ','), '')"/> 
    396                         <xsl0:value-of select="si(sm:position/sm:free/@left, concat('left=', sm:position/sm:free/@left, ','), '')"/> 
    397                         <xsl0:value-of select="si(sm:position/sm:centerScreen, concat('width=', sm:position/sm:centerScreen/@width, ',height=', sm:position/sm:centerScreen/@height, ',left=&quot;', '+(screen.availWidth-', sm:position/sm:centerScreen/@width, ')/2+&quot;,top=&quot;', '+(screen.availHeight-', sm:position/sm:centerScreen/@height, ')/2+&quot;,'),'')"/> 
    398                         <xsl0:value-of select="si(sm:position/sm:maximized, concat('top=0,left=0,width=', ',width=&quot;', '+screen.availWidth', '+&quot;,height=&quot;', '+screen.availHeight', '+&quot;,'),'')"/> 
    399                         <xsl0:value-of select="si(sm:windowFeatures/@scrollbars, concat('scrollbars=', sm:windowFeatures/@scrollbars, ','), '')"/> 
    400                         <xsl0:value-of select="si(sm:windowFeatures/@resizable, concat('resizable=', sm:windowFeatures/@resizable, ','), '')"/> 
    401                         <xsl0:value-of select="si(sm:windowFeatures/@toolbar, concat('toolbar=', sm:windowFeatures/@toolbar, ','), '')"/> 
    402                         <xsl0:value-of select="si(sm:windowFeatures/@menubar, concat('menubar=', sm:windowFeatures/@menubar, ','), '')"/> 
    403                         <xsl0:value-of select="si(sm:windowFeatures/@location, concat('location=', sm:windowFeatures/@location, ','), '')"/> 
    404                         <xsl0:value-of select="si(sm:windowFeatures/@extraOptions, concat(sm:windowFeatures/@extraOptions, ','), '')"/> 
     400                        <xsl0:call-template name="linkOptions"/><!-- Dans bsco:sm/web/sm_WLink.xml.xsl --> 
    405401                </xsl0:variable>window.open(&quot;<xsl0:apply-templates mode="jsAction"/>&quot;,<xsl0:choose> 
    406402                                        <xsl0:when test="@target='newWindow'">&quot;_blank&quot;</xsl0:when> 
Note: See TracChangeset for help on using the changeset viewer.