marking autocomplete=off for the input box to prevent the
authorJoshua Ferraro <jmf@liblime.com>
Mon, 22 Oct 2007 04:40:49 +0000 (23:40 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Mon, 22 Oct 2007 12:13:38 +0000 (07:13 -0500)
Also, updating circulation-home.tmpl to check the syspref
to enable autocomplete

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
koha-tmpl/intranet-tmpl/prog/en/includes/circ-search-autocompl.inc
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation-home.tmpl

index 3244f9c..ccc13b0 100755 (executable)
@@ -80,7 +80,7 @@
     <form action="/cgi-bin/koha/circ/circulation.pl" method="post">
         <div class="yui-skin-sam">
             <div id="borrowerautocomplete" class="autocomplete">
-                <input id="findborrower" name="findborrower" class="focus" type="text" />
+                <input autocomplete="off" id="findborrower" name="findborrower" class="focus" type="text" />
                 <div id="yborrowercontainer"></div>
                 <input id="ysearchsubmit" type="submit" value="Submit">
                 <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
@@ -159,4 +159,4 @@ YAHOO.bsearch.ACFlatData = new function() {
 
 </script>
 
-<!-- End Circulation Resident Search Box -->
\ No newline at end of file
+<!-- End Circulation Resident Search Box -->
index 3a92eed..5585102 100644 (file)
@@ -4,7 +4,12 @@
 </head>
 <body>
 <!-- TMPL_INCLUDE NAME="header.inc" -->
+
+<!-- TMPL_IF NAME="CircAutocompl" -->
+<!-- TMPL_INCLUDE NAME="circ-search-autocompl.inc" -->
+<!-- TMPL_ELSE -->
 <!-- TMPL_INCLUDE NAME="circ-search.inc" -->
+<!-- /TMPL_IF -->
 
 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; Circulation</div>