summaryrefslogtreecommitdiff
path: root/misc/ajax.js
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-02-03 08:23:12 +0000
committerDries Buytaert <dries@buytaert.net>2010-02-03 08:23:12 +0000
commit759277c8a3058c82612a96f9b920da0b529d1eff (patch)
treec2c79c8e9c4ccf1b16e66bd25527d1becae5f733 /misc/ajax.js
parentbe13104e2cf610e4ac776eb161f474854d359903 (diff)
downloadbrdo-759277c8a3058c82612a96f9b920da0b529d1eff.tar.gz
brdo-759277c8a3058c82612a96f9b920da0b529d1eff.tar.bz2
- Patch #565808 by Dave Reid: fixed nojs/ajax replacement.
Diffstat (limited to 'misc/ajax.js')
-rw-r--r--misc/ajax.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/ajax.js b/misc/ajax.js
index 1ded01ca8..016a953ce 100644
--- a/misc/ajax.js
+++ b/misc/ajax.js
@@ -107,7 +107,7 @@ Drupal.ajax = function (base, element, element_settings) {
// Replacing 'nojs' with 'ajax' in the URL allows for an easy method to let
// the server detect when it needs to degrade gracefully.
- this.url = element_settings.url.replace('/nojs/', '/ajax/');
+ this.url = element_settings.url.replace(/nojs/g, 'ajax');
this.wrapper = '#' + element_settings.wrapper;
// If there isn't a form, jQuery.ajax() will be used instead, allowing us to