From 549e57370826bd7854a182e48ba357bccf4e9f95 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sat, 20 Jun 2009 08:02:29 +0000 Subject: #496922 by sun and Arancaytar: Fix JS Clean URL test to remove phantom redirects. --- modules/system/system.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/system/system.js b/modules/system/system.js index d589af166..92925c3a7 100644 --- a/modules/system/system.js +++ b/modules/system/system.js @@ -13,7 +13,7 @@ Drupal.behaviors.cleanURLsSettingsCheck = { // This behavior attaches by ID, so is only valid once on a page. // Also skip if we are on an install page, as Drupal.cleanURLsInstallCheck will handle // the processing. - if ($('.clean-url-processed, #edit-clean-url.install').size()) { + if (!($('#edit-clean-url').size()) || $('.clean-url-processed, #edit-clean-url.install').size()) { return; } var url = settings.basePath + 'admin/settings/clean-urls/check'; -- cgit v1.2.3