Permalink
Browse files

Disabling autocomplete on text inputs

  • Loading branch information...
1 parent 34633a4 commit 1b769b0b99f7dc4c89c24ccafbc2c770c6ac4771 @xfra35 committed Feb 5, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 adminer/static/editing.js
@@ -36,6 +36,11 @@ function bodyLoad(version) {
};
document.body.appendChild(script);
}
+ for (var i=0; i < document.getElementsByTagName('input').length; i++) {
+ if (document.getElementsByTagName('input').item(i).type == 'text') {
+ document.getElementsByTagName('input').item(i).setAttribute('autocomplete', 'off');
+ };
+ };
}
/** Get value of dynamically created form field

0 comments on commit 1b769b0

Please sign in to comment.