mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 06:03:20 +00:00
Fix subscription bug for old subscribers on subscription page
This commit is contained in:
parent
5c4a16d14c
commit
f1e8d55b41
@ -35,10 +35,21 @@ $( function() {
|
|||||||
function display_new_member() {
|
function display_new_member() {
|
||||||
if (select.val()) {
|
if (select.val()) {
|
||||||
member_block.hide();
|
member_block.hide();
|
||||||
|
member_block.children().each(function() {
|
||||||
|
$(this).children().each(function() {
|
||||||
|
$(this).removeAttr('required');
|
||||||
|
});
|
||||||
|
});
|
||||||
user_info.load("/user/"+select.val()+"/mini");
|
user_info.load("/user/"+select.val()+"/mini");
|
||||||
user_info.show();
|
user_info.show();
|
||||||
} else {
|
} else {
|
||||||
member_block.show();
|
member_block.show();
|
||||||
|
member_block.children().each(function() {
|
||||||
|
$(this).children().each(function() {
|
||||||
|
$(this).prop('required', true);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
user_info.empty();
|
user_info.empty();
|
||||||
user_info.hide();
|
user_info.hide();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user