Projet

Général

Profil

Révision cee0424c

Ajouté par Assos Assos il y a plus de 3 ans

-a

Voir les différences:

drupal7/misc/drupal.js
424 424
  return absoluteUrl === baseUrl || absoluteUrl.indexOf(baseUrl + '/') === 0;
425 425
};
426 426

  
427
/**
428
 * Sanitizes a URL for use with jQuery.ajax().
429
 *
430
 * @param url
431
 *   The URL string to be sanitized.
432
 *
433
 * @return
434
 *   The sanitized URL.
435
 */
436
Drupal.sanitizeAjaxUrl = function (url) {
437
  var regex = /\=\?(&|$)/;
438
  while (url.match(regex)) {
439
    url = url.replace(regex, '');
440
  }
441
  return url;
442
}
443

  
427 444
/**
428 445
 * Generate the themed representation of a Drupal object.
429 446
 *

Formats disponibles : Unified diff