Changeset 9401 for trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/_common/sma/xhtmlTransf/common.xsl.xsl
- Timestamp:
- 07/25/07 22:28:40 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/_common/sma/xhtmlTransf/common.xsl.xsl
r9104 r9401 58 58 > 59 59 60 <xsl0:import href="bsco:sm/web/sm_WLink.xml.xsl"/> 61 60 62 <xsl0:output method="xml" indent="no"/> 61 63 <xsl0:namespace-alias stylesheet-prefix="xsl" result-prefix="xsl0"/> … … 387 389 </xsl0:if> 388 390 </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("<xsl0:apply-templates mode="jsAction"/>","<xsl0:value-of select="si(@windowName, @windowName, 'subWindow')"/>","<xsl0:value-of select="$pOptions"/>"); 395 </xsl0:template> 389 396 <xsl0:template match="sm:link[not(@target) or @target='sameWindow']" mode="jsAction">window.location.assign("<xsl0:apply-templates mode="jsAction"/>"); 390 397 </xsl0:template> 391 398 <xsl0:template match="sm:link" mode="jsAction"> 392 399 <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="', '+(screen.availWidth-', sm:position/sm:centerScreen/@width, ')/2+",top="', '+(screen.availHeight-', sm:position/sm:centerScreen/@height, ')/2+",'),'')"/> 398 <xsl0:value-of select="si(sm:position/sm:maximized, concat('top=0,left=0,width=', ',width="', '+screen.availWidth', '+",height="', '+screen.availHeight', '+",'),'')"/> 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 --> 405 401 </xsl0:variable>window.open("<xsl0:apply-templates mode="jsAction"/>",<xsl0:choose> 406 402 <xsl0:when test="@target='newWindow'">"_blank"</xsl0:when>
Note: See TracChangeset
for help on using the changeset viewer.