[open-ils-commits] r82 - servres/trunk/conifer/templates

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Dec 16 15:04:53 EST 2008


Author: artunit
Date: 2008-12-16 15:04:49 -0500 (Tue, 16 Dec 2008)
New Revision: 82

Modified:
   servres/trunk/conifer/templates/master.xhtml
Log:


Modified: servres/trunk/conifer/templates/master.xhtml
===================================================================
--- servres/trunk/conifer/templates/master.xhtml	2008-12-16 19:21:42 UTC (rev 81)
+++ servres/trunk/conifer/templates/master.xhtml	2008-12-16 20:04:49 UTC (rev 82)
@@ -29,7 +29,9 @@
         -->
       <div id="header">
         <div id="search">
-            <form method="get" action="/syrup/search">
+            <form method="get" action="/syrup/search" 
+                onsubmit="if(q.value.replace(/^\s*/, '').replace(/\s*$/, '') =='') return false;"
+            >
             <input id="q" name="q" maxlength="100" size="25" type="text" 
                 value="search..." onblur="if(this.value=='') this.value='search...';" 
                 onfocus="if(this.value=='search...') this.value='';"/>



More information about the open-ils-commits mailing list