git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@82 6d9bc8c9-1ec2-4278...
authorartunit <artunit@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Tue, 16 Dec 2008 20:04:49 +0000 (20:04 +0000)
committerartunit <artunit@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Tue, 16 Dec 2008 20:04:49 +0000 (20:04 +0000)
conifer/templates/master.xhtml

index fd80839..b6f6046 100644 (file)
@@ -29,7 +29,9 @@ app_name = 'Syrup E-Reserve System'
         -->
       <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='';"/>