Skip to content
Snippets Groups Projects
Commit 3e7fe972 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #215308 by Pancho: 'testing clean URLs' stay after test.

parent c8a2413b
No related branches found
No related tags found
No related merge requests found
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment