[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kupu-checkins
Subject:    [epoz-checkins] r3578 - epoz/branch/plone-drawers/common/kupudrawers
From:       philikon () codespeak ! net
Date:       2004-03-31 20:15:41
Message-ID: 20040331201541.CAF855A142 () thoth ! codespeak ! net
[Download RAW message or body]

Author: philikon
Date: Wed Mar 31 22:15:41 2004
New Revision: 3578

Modified:
   epoz/branch/plone-drawers/common/kupudrawers/librarydrawer.xsl
Log:
* Call the drawer's search() method when Enter key is hit in the search box
* Wrap some long lines and get rid of some old commented markup.


Modified: epoz/branch/plone-drawers/common/kupudrawers/librarydrawer.xsl
==============================================================================
--- epoz/branch/plone-drawers/common/kupudrawers/librarydrawer.xsl	(original)
+++ epoz/branch/plone-drawers/common/kupudrawers/librarydrawer.xsl	Wed Mar 31 22:15:41 2004
@@ -31,7 +31,8 @@
               select="/libraries/*[@selected]"
               mode="header"
               />
-            <input id="epd-searchbox" name="searchbox" value="" />
+            <input id="epd-searchbox" name="searchbox" value=""
+                   onkeyup="if (event.keyCode == 13 ) parent.drawertool.current_drawer.search();" />
           </div>
           <div id="epd-panels">
             <table>
@@ -61,8 +62,10 @@
             </table>
           </div>
           <div id="epd-dialogbuttons">
-            <button type="button" onclick="parent.drawertool.closeDrawer();">Cancel</button>
-            <button type="button" onclick="parent.drawertool.current_drawer.save();">Ok</button>
+            <button type="button"
+              onclick="parent.drawertool.closeDrawer();">Cancel</button>
+            <button type="button"
+              onclick="parent.drawertool.current_drawer.save();">Ok</button>
           </div>
         </div>
       </body>
@@ -70,16 +73,11 @@
   </xsl:template>
 
   <xsl:template match="library">
-    <div onclick="parent.drawertool.current_drawer.selectLibrary('{@id}');" class="epd-libsource">
+    <div onclick="parent.drawertool.current_drawer.selectLibrary('{@id}');"
+         class="epd-libsource">
       <xsl:attribute name="id">
         <xsl:value-of select="@id" />
       </xsl:attribute>
-      <!-- 
-      We handle selection directly in the HTML now to speed up things a bit
-           <xsl:if test="@selected">
-             <xsl:attribute name="style">background-color: #C0C0C0</xsl:attribute>
-           </xsl:if>
-           -->
       <xsl:if test="icon">
         <img src="{icon}" title="{title}" alt="{title}" />
       </xsl:if>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic