summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-10-06 17:58:25 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-10-06 17:58:25 +0000
commit77ce3c6dd8caa75f76b15790d9e3a1cf5533dfa5 (patch)
tree5b3032b6e014282c1809b91522aff7c953ec5b71 /misc
parent95dc4dde40c34eee83de41ea86696f1b56306446 (diff)
downloadbrdo-77ce3c6dd8caa75f76b15790d9e3a1cf5533dfa5.tar.gz
brdo-77ce3c6dd8caa75f76b15790d9e3a1cf5533dfa5.tar.bz2
#922796 by merlinofchaos: Fixed ajax.js ajax options are not dynamic.
Diffstat (limited to 'misc')
-rw-r--r--misc/ajax.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/misc/ajax.js b/misc/ajax.js
index 74fefba35..25e4b0587 100644
--- a/misc/ajax.js
+++ b/misc/ajax.js
@@ -127,7 +127,7 @@ Drupal.ajax = function (base, element, element_settings) {
// 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, element_settings) {
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;