Skip to content

Commit

Permalink
- Patch #215308 by Pancho: 'testing clean URLs' stay after test.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbuytaert committed Feb 8, 2008
1 parent c8a2413 commit 3e7fe97
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/system/system.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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');
Expand Down

0 comments on commit 3e7fe97

Please sign in to comment.