Permalink
Browse files

Fixed #12695 - Force Firefox to not autocomplete input fields that ar…

…e critical to the dynamic admin inlines.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12370 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 9555f2b commit f839736c60ce95b71f35d21df31fa8402aee34e0 @jezdez jezdez committed Feb 1, 2010
Showing with 3 additions and 4 deletions.
  1. +2 −3 django/contrib/admin/media/js/inlines.js
  2. +1 −1 django/contrib/admin/media/js/inlines.min.js
@@ -30,9 +30,8 @@
el.name = el.name.replace(id_regex, replacement);
}
};
- var totalForms = $("#id_" + options.prefix + "-TOTAL_FORMS");
- var initialForms = $("#id_" + options.prefix + "-INITIAL_FORMS");
- var maxForms = $("#id_" + options.prefix + "-MAX_NUM_FORMS");
+ var totalForms = $("#id_" + options.prefix + "-TOTAL_FORMS").attr("autocomplete", "off");
+ var maxForms = $("#id_" + options.prefix + "-MAX_NUM_FORMS").attr("autocomplete", "off");
// only show the add button if we are allowed to add more items
var showAddButton = ((maxForms.val() == 0) || ((maxForms.val()-totalForms.val()) > 0));
var selectedItems = this;
Oops, something went wrong.

0 comments on commit f839736

Please sign in to comment.