Index: misc/ajax.js
===================================================================
RCS file: /cvs/drupal/drupal/misc/ajax.js,v
retrieving revision 1.19
diff -u -p -r1.19 ajax.js
--- misc/ajax.js	22 Sep 2010 21:01:39 -0000	1.19
+++ misc/ajax.js	25 Sep 2010 20:52:55 -0000
@@ -127,7 +127,7 @@ Drupal.ajax = function (base, element, e
   // Set the options for the ajaxSubmit function.
   // The 'this' variable will not persist inside of the options object.
   var ajax = this;
-  var options = {
+  ajax.options = {
     url: ajax.url,
     data: ajax.submit,
     beforeSerialize: function (element_settings, options) {
@@ -173,14 +173,14 @@ Drupal.ajax = function (base, element, e
           ajax.form.clk = this.element;
         }
 
-        ajax.form.ajaxSubmit(options);     
+        ajax.form.ajaxSubmit(ajax.options);
       }
       else {
-        $.ajax(options);
+        $.ajax(ajax.options);
       }
     }
     catch (e) {
-      alert("An error occurred while attempting to process " + options.url + ": " + e.message);
+      alert("An error occurred while attempting to process " + ajax.options.url + ": " + e.message);
     }
 
     return false;
