- Patch #97213 by Chris: made clean URL test work with non-conventional ports.
parent
301c6e7539
commit
ab65c232f4
|
@ -11,7 +11,7 @@ Drupal.cleanURLsSettingsCheck = function() {
|
||||||
var url = location.pathname +"admin/settings/clean-urls";
|
var url = location.pathname +"admin/settings/clean-urls";
|
||||||
$("#clean-url .description span").html('<div id="testing">'+ Drupal.settings.cleanURL.testing +"</div>");
|
$("#clean-url .description span").html('<div id="testing">'+ Drupal.settings.cleanURL.testing +"</div>");
|
||||||
$("#clean-url p").hide();
|
$("#clean-url p").hide();
|
||||||
$.ajax({url: location.protocol +"//"+ location.hostname + url, type: "GET", data: " ", complete: function(response) {
|
$.ajax({url: location.protocol +"//"+ location.host + url, type: "GET", data: " ", complete: function(response) {
|
||||||
$("#testing").toggle();
|
$("#testing").toggle();
|
||||||
if (response.status == 200) {
|
if (response.status == 200) {
|
||||||
// Check was successful.
|
// Check was successful.
|
||||||
|
|
Loading…
Reference in New Issue