phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] [18556] fix the broken onmouseover rubbish


From: Dave Hall
Subject: [Phpgroupware-cvs] [18556] fix the broken onmouseover rubbish
Date: Sun, 01 Jun 2008 01:07:15 +0000

Revision: 18556
          
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=18556
Author:   skwashd
Date:     2008-06-01 01:07:15 +0000 (Sun, 01 Jun 2008)

Log Message:
-----------
fix the broken onmouseover rubbish

Modified Paths:
--------------
    trunk/phpgwapi/templates/base/categories.xsl

Modified: trunk/phpgwapi/templates/base/categories.xsl
===================================================================
--- trunk/phpgwapi/templates/base/categories.xsl        2008-06-01 01:03:00 UTC 
(rev 18555)
+++ trunk/phpgwapi/templates/base/categories.xsl        2008-06-01 01:07:15 UTC 
(rev 18556)
@@ -12,43 +12,31 @@
        </xsl:template>
 
        <xsl:template match="cat_filter">
-               <xsl:variable name="select_url"><xsl:value-of 
select="select_url"/></xsl:variable>
-               <xsl:variable name="select_name"><xsl:value-of 
select="select_name"/></xsl:variable>
-               <xsl:variable name="lang_submit"><xsl:value-of 
select="lang_submit"/></xsl:variable>
-               <form method="post" action="{$select_url}">
-                       <select name="{$select_name}" 
onChange="this.form.submit();" onMouseout="window.status='';return true;">
-                               <xsl:attribute name="onMouseover">
-                                       <xsl:text>window.status='</xsl:text>
-                                               <xsl:value-of 
select="lang_cat_statustext"/>
-                                       <xsl:text>'; return true;</xsl:text>
-                               </xsl:attribute>
+               <form method="post" action="{select_url}">
+                       <select name="{select_name}" 
onChange="this.form.submit();">
                                <option value="none"><xsl:value-of 
select="lang_no_cat"/></option>
                                        <xsl:apply-templates select="cat_list"/>
                        </select>
                        <noscript>
                                <xsl:text> </xsl:text>
-                               <input type="submit" name="submit" 
value="{$lang_submit}"/>
+                               <input type="submit" name="submit" 
value="{lang_submit}"/>
                        </noscript>
                </form>
        </xsl:template>
 
        <xsl:template match="cat_select">
-       <xsl:variable name="lang_cat_statustext"><xsl:value-of 
select="lang_cat_statustext"/></xsl:variable>
-       <xsl:variable name="select_name"><xsl:value-of 
select="select_name"/></xsl:variable>
-               <select name="{$select_name}" class="forms" 
onMouseover="window.status='{$lang_cat_statustext}'; return true;" 
onMouseout="window.status='';return true;">
+               <select name="{select_name}" class="forms">
                        <option value="none"><xsl:value-of 
select="lang_no_cat"/></option>
                                <xsl:apply-templates select="cat_list"/>
                </select>
        </xsl:template>
 
        <xsl:template match="cat_list">
-       <xsl:variable name="cat_id"><xsl:value-of 
select="cat_id"/></xsl:variable>
-               <xsl:choose>
-                       <xsl:when test="selected != ''">
-                               <option value="{$cat_id}" 
selected="selected"><xsl:value-of disable-output-escaping="yes" 
select="name"/></option>
-                       </xsl:when>
-                       <xsl:otherwise>
-                               <option value="{$cat_id}"><xsl:value-of 
disable-output-escaping="yes" select="name"/></option>
-                       </xsl:otherwise>
-               </xsl:choose>
+               <option value="{cat_id}"><xsl:value-of 
disable-output-escaping="yes" select="name"/>
+                       <xsl:if test="selected != ''">
+                               <xsl:attribute name="selected">
+                                       <xsl:text>selected</xsl:text>
+                               </xsl:attribute>
+                       </xsl:if>
+               </option>
        </xsl:template>






reply via email to

[Prev in Thread] Current Thread [Next in Thread]