Skip to content
Snippets Groups Projects
Commit 37b606f2 authored by Alex Barth's avatar Alex Barth
Browse files

Roll back basic auth UI.

parent de5fe6ea
No related branches found
No related tags found
No related merge requests found
...@@ -87,25 +87,4 @@ Drupal.behaviors.feeds = function() { ...@@ -87,25 +87,4 @@ Drupal.behaviors.feeds = function() {
$('#' + $(this).attr('id')).attr('checked', 1); $('#' + $(this).attr('id')).attr('checked', 1);
$('input.form-submit.feeds-ui-hidden-submit').click(); $('input.form-submit.feeds-ui-hidden-submit').click();
}); });
// Show basic auth u/pw conditionally.
// @todo Generalize dependencies between form elements.
if ($('#edit-basic-auth-2').attr('checked')) {
$('#edit-basic-auth-user-wrapper').show();
$('#edit-basic-auth-password-wrapper').show();
}
else {
$('#edit-basic-auth-user-wrapper').hide();
$('#edit-basic-auth-password-wrapper').hide();
}
$('#edit-basic-auth-2').click(function() {
if ($(this).attr('checked')) {
$('#edit-basic-auth-user-wrapper').show(100);
$('#edit-basic-auth-password-wrapper').show(100);
}
});
$('#edit-basic-auth-0,#edit-basic-auth-1').click(function() {
$('#edit-basic-auth-user-wrapper').hide(100);
$('#edit-basic-auth-password-wrapper').hide(100);
});
}; };
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