Skip to content

Commit

Permalink
Merge pull request #1260 from josaphatim/fix-nux-allink-provider-in-v2
Browse files Browse the repository at this point in the history
Fixed AllInkl provider in Cypht V2
  • Loading branch information
Yannick243 authored Sep 30, 2024
2 parents 17dd6e9 + 2231e8c commit d3a1a15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/nux/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/* .nux_step_two_title { padding-top: 20px; font-size: 110%; padding-bottom: 10px; } */
/* .nux_step_one, .nux_step_two { padding-left: 40px; max-width: 600px; } */
/* .enable_auth2 { float: left; padding: 20px; padding-left: 0px; padding-bottom: 40px; font-size: 110%; } */
.nux_password, .app_password { margin: 10px; margin-left: 0px; margin-top: 0px; width: 280px; }
.nux_password, .app_password { margin: 10px; margin-left: 0px; margin-top: 0px; }
/* .reset_nux_form { float: right; padding: 20px; padding-bottom: 40px; font-size: 110%; } */
/* .nux_submit { margin-bottom: 20px; } */
/* .nux_account_name, .nux_username, #service_select, .nux_extra_fields { margin-bottom: 10px; width: 280px; padding: 3px; } */
Expand Down
6 changes: 3 additions & 3 deletions modules/nux/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var display_next_nux_step = function(res) {
$('.nux_step_two').html('');
document.getElementById('service_select').getElementsByTagName('option')[0].selected = 'selected';
$('.nux_username').val('');
$('.nux_extra_fields').remove();
$('.nux_extra_fields_container').remove();
return false;
});
};
Expand Down Expand Up @@ -118,7 +118,7 @@ var expand_server_settings = function() {
};

var add_extra_fields = function(select, id, label, placeholder) {
$(select).next().next().after('<input type="text" id="nux_'+id+'" class="nux_extra_fields" placeholder="'+placeholder+'"><label class="screen_reader nux_extra_fields" for="nux_'+id+'">'+label+'</label><br class="nux_extra_fields">');
$(select).parent().after('<div class="form-floating mb-3 nux_extra_fields_container"><input type="text" id="nux_'+id+'" class="nux_extra_fields form-control" placeholder="'+placeholder+'"><label for="nux_'+id+'">'+label+'</label></div>');
};

$(function() {
Expand All @@ -129,7 +129,7 @@ $(function() {
if ($(this).val() == 'all-inkl') {
add_extra_fields(this, 'all_inkl_login', 'Login', hm_trans('Your All-inkl Login'));
} else {
$('.nux_extra_fields').remove();
$('.nux_extra_fields_container').remove();
}
});
}
Expand Down

0 comments on commit d3a1a15

Please sign in to comment.