Tooltip iframe src loaded on demand

FEA: ItEr65S11TooltipPerformance
This commit is contained in:
Lorenzo Tilve 2010-12-13 21:18:44 +01:00
parent 6ac87621ed
commit 84ac0b2def
5 changed files with 26 additions and 13 deletions

View file

@ -67,7 +67,7 @@
mold="select" />
</row>
<row>
<label value="${i18n:_('Company logo')}" />
<label value="${i18n:_('Company logo URL')}" />
<textbox id="companyLogoURL"
value="@{configurationController.companyLogoURL}" width="300px"/>
</row>

View file

@ -82,13 +82,17 @@
</n:tr>
</n:table>
<popup id="help-popup" width="700px" style="position:relative;right:190px;padding:10px">
<iframe id="iframe" src="/help/${i18n:_('en')}/${menuContainer.helpLink}" width="670px" height="450px"
style="border: 1px solid gray" />
<zscript><![CDATA[
i18nHelpLink = "/help/" + org.navalplanner.web.I18nHelper._("en") + "/" + menuContainer.getHelpLink();
i18nAboutLink = "/help/" + org.navalplanner.web.I18nHelper._("en") + "/20-acerca-de.html";
]]></zscript>
<popup id="help-popup" width="700px" style="position:relative;right:190px;padding:10px"
onOpen="helpIframe.setSrc(i18nHelpLink)">
<iframe id="helpIframe" width="670px" height="450px" style="border: 1px solid gray" />
</popup>
<popup id="help-about" width="700px" style="position:relative;right:190px;padding:10px">
<iframe id="iframe-about" src="/help/${i18n:_('en')}/20-acerca-de.html" width="670px" height="350px"
style="border: 1px solid gray" />
<popup id="help-about" width="700px" style="position:relative;right:190px;padding:10px"
onOpen="aboutIframe.setSrc(i18nAboutLink)">
<iframe id="aboutIframe" width="670px" height="350px" style="border: 1px solid gray" />
</popup>
</div>

View file

@ -135,8 +135,11 @@
sclass="cancel-button global-action"/>
</hbox>
<popup id="quality-forms-popup" width="700px" >
<iframe id="iframe" src="/help/${i18n:_('en')}/12-formularios-calidad.html#administracion-de-formularios-de-calidade" width="100%" />
<zscript><![CDATA[
i18iframe = "/help/" + org.navalplanner.web.I18nHelper._("en") + "/12-formularios-calidad.html#administracion-de-formularios-de-calidade";
]]></zscript>
<popup id="quality-forms-popup" width="700px" onOpen='iframe.setSrc(i18iframe)'>
<iframe id="iframe" width="100%" />
</popup>
</window>

View file

@ -101,8 +101,11 @@
onClick="controller.cancel();"
sclass="cancel-button global-action"/>
<popup id="limiting-resources-popup" width="700px" >
<iframe id="iframe" src="/help/${i18n:_('en')}/05-recursos.html#recursos-limitantes" width="100%" />
<zscript><![CDATA[
i18iframe = "/help/" + org.navalplanner.web.I18nHelper._("en") + "/05-recursos.html#recursos-limitantes";
]]></zscript>
<popup id="limiting-resources-popup" width="700px" onOpen='iframe.setSrc(i18iframe)'>
<iframe id="iframe" width="100%" />
</popup>
</window>

View file

@ -114,8 +114,11 @@
<button onClick="controller.cancel();"
label="${arg.cancel_button_label}" sclass="cancel-button global-action"/>
<popup id="limiting-resources-popup" width="700px" >
<iframe id="iframe" src="/help/${i18n:_('en')}/05-recursos.html#recursos-limitantes" width="100%" />
<zscript><![CDATA[
i18iframe = "/help/" + org.navalplanner.web.I18nHelper._("en") + "/05-recursos.html#recursos-limitantes";
]]></zscript>
<popup id="limiting-resources-popup" width="700px" onOpen='iframe.setSrc(i18iframe)'>
<iframe id="iframe" width="100%" />
</popup>
</window>