diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-02-08 02:50:19 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-02-08 02:50:19 +0000 |
commit | 3e7fe972f655eed3c7a34a52fbe5966eb1105c29 (patch) | |
tree | 3317b32d2a0dc116af10546ede5d7179a237ffca | |
parent | c8a2413b4ccd63d9ca4ee822c31ec3605f6286f3 (diff) | |
download | brdo-3e7fe972f655eed3c7a34a52fbe5966eb1105c29.tar.gz brdo-3e7fe972f655eed3c7a34a52fbe5966eb1105c29.tar.bz2 |
- Patch #215308 by Pancho: 'testing clean URLs' stay after test.
-rw-r--r-- | modules/system/system.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/system/system.js b/modules/system/system.js index a53fefc77..c2abc8a89 100644 --- a/modules/system/system.js +++ b/modules/system/system.js @@ -24,11 +24,12 @@ Drupal.behaviors.cleanURLsSettingsCheck = function(context) { // Check was successful. $("#clean-url input.form-radio").attr("disabled", false); $("#clean-url .description span").append('<div class="ok">'+ Drupal.t('Your server has been successfully tested to support this feature.') +"</div>"); - $("#testing").toggle(); + $("#testing").hide(); }, error: function() { // Check failed. $("#clean-url .description span").append('<div class="warning">'+ Drupal.t('Your system configuration does not currently support this feature. The <a href="http://drupal.org/node/15365">handbook page on Clean URLs</a> has additional troubleshooting information.') +"</div>"); + $("#testing").hide(); } }); $("#clean-url").addClass('clean-url-processed'); @@ -51,12 +52,14 @@ Drupal.cleanURLsInstallCheck = function() { success: function () { // Check was successful. $("#clean-url input.form-radio").attr("disabled", false); - $("#clean-url .description span").append('<div class="ok">'+ Drupal.settings.cleanURL.success +"</div>"); $("#clean-url input.form-radio").attr("checked", 1); + $("#clean-url .description span").append('<div class="ok">'+ Drupal.settings.cleanURL.success +"</div>"); + $("#testing").hide(); }, error: function() { // Check failed. $("#clean-url .description span").append('<div class="warning">'+ Drupal.settings.cleanURL.failure +"</div>"); + $("#testing").hide(); } }); $("#clean-url").addClass('clean-url-processed'); |