summaryrefslogtreecommitdiff
path: root/modules/system/system.js
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system/system.js')
-rw-r--r--modules/system/system.js7
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');