Skip to content
Snippets Groups Projects
Commit 759277c8 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #565808 by Dave Reid: fixed nojs/ajax replacement.

parent be13104e
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment