diff js/black-box.js @ 101:106a0018e601

Get rid of any form values cached by the browser.
author Atul Varma <avarma@mozilla.com>
date Wed, 28 Apr 2010 18:37:08 -0700
parents c486d35fad27
children 00b02ba5236c
line wrap: on
line diff
--- a/js/black-box.js	Tue Apr 27 23:06:29 2010 -0700
+++ b/js/black-box.js	Wed Apr 28 18:37:08 2010 -0700
@@ -84,6 +84,9 @@
     //console.log(method, args);
   }
 
+  // Get rid of any form values cached by the browser.
+  options.jQuery("input[type=text], input[type=password]").val("");
+
   var ajaxImpl = require("mocks/bugzilla/trivial").makeAjaxImpl();
   options.cache = require("mocks/cache").create(delegate);
   options.Bugzilla = require("mocks/bugzilla").create(options.Bugzilla,