cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <vadim.gritse...@verizon.net>
Subject Re: cvs commit: cocoon-2.1/src/blocks/woody/samples/resources woody-field-styling.xsl
Date Tue, 18 Nov 2003 14:43:20 GMT
Sylvain Wallez wrote:

> Vadim Gritsenko wrote:
>
>> jeremy@apache.org wrote:
>>
>>> jeremy      2003/11/18 05:16:34
>>>
>>>  Modified:    src/blocks/woody/samples/resources 
>>> woody-field-styling.xsl
>>>  Log:
>>>  My sincere appologies, I committed the wrong project !!!!
>>>  Undoing my changes .... (I HOPE!!!)
>>>  
>>>  Revision  Changes    Path
>>>  1.15      +0 -5      
>>> cocoon-2.1/src/blocks/woody/samples/resources/woody-field-styling.xsl
>>>  
>>>  Index: woody-field-styling.xsl
>>>  ===================================================================
>>>  RCS file: 
>>> /home/cvs/cocoon-2.1/src/blocks/woody/samples/resources/woody-field-styling.xsl,v

>>>
>>>  retrieving revision 1.14
>>>  retrieving revision 1.15
>>>  diff -u -r1.14 -r1.15
>>>  --- woody-field-styling.xsl    18 Nov 2003 13:13:04 -0000    1.14
>>>  +++ woody-field-styling.xsl    18 Nov 2003 13:16:34 -0000    1.15
>>>  @@ -75,11 +75,6 @@
>>>       <xsl:if test="@required='true'">
>>>         <span class="woody-field-required"> * </span>
>>>       </xsl:if>
>>>  -    <xsl:apply-templates select="wi:help"/>
>>>  -  </xsl:template>
>>>  -
>>>  -  <xsl:template match="wi:help">
>>>  -    <a href="#" style="color:orange; font-weight: bold" 
>>> onclick="alert('{normalize-space(.)}'); return 
>>> false;">&#160;?&#160;</a>
>>>     </xsl:template>
>>>       <xsl:template match="wi:validation-message">
>>>
>>
>> You can try this for wi:help:
>>
>>    <xsl:if test="wi:help">
>>      <span id="h{generate-id()}" 
>> style="position:absolute;visibility:hidden;background-color:white;layer-background-color:white;">

>>
>>        <div style="border-style: solid; border-width: 1px; margin: 
>> 1px; padding: 5px;">
>>          <xsl:apply-templates select="wi:help"/>
>>        </div>
>>      </span>
>>      <script language="JavaScript">
>>        var hWin<xsl:value-of select="generate-id()"/> = new 
>> PopupWindow('h<xsl:value-of select="generate-id()"/>');
>>        hWin<xsl:value-of select="generate-id()"/>.autoHide();
>>      </script>
>>      <a id="{generate-id()}" href="#" 
>> onclick="hWin{generate-id()}.showPopup('{generate-id()}');return 
>> false;"><img border="0" src="resources/help.png"/></a>
>>    </xsl:if>
>>
>> It will generate nice popup using same Calendar.js script, and this 
>> popup will support html tags, not like this alert() window
>
>
>
> Looks super-cool. Wanna commit it?


I don't have good icon for it ;-)
Go ahead, if you want, don't wait for me :)

Vadim



Mime
View raw message