diff --git a/app/views/wiki/edit_web.rhtml b/app/views/wiki/edit_web.rhtml index e45199c2..0477233f 100755 --- a/app/views/wiki/edit_web.rhtml +++ b/app/views/wiki/edit_web.rhtml @@ -7,10 +7,10 @@ Ex: the address "rails" gives URLs like /rails/show/HomePage. -
Enter system password
-
+
and
@@ -126,4 +126,17 @@ function validateSetup() {
return true;
}
+
+// overriding auto-complete by form managers
+// code by Chris Holland, lifted from
+// http://chrisholland.blogspot.com/2004/11/banks-protect-privacy-disable.html
+if (document.getElementsByTagName) {
+ var inputElements = document.getElementsByTagName("input");
+ for (i=0; inputElements[i]; i++) {
+ if (inputElements[i].className && (inputElements[i].className.indexOf("disableAutoComplete") != -1)) {
+ inputElements[i].setAttribute("autocomplete","off");
+ }//if current input element has the disableAutoComplete class set.
+ }//loop thru input elements
+}
+