Minor fixes and TODOs
This commit is contained in:
1 parent
da0e945812
commit
6a65446bfa
8 files changed
+23
-15
No files matched your search
@@ -397,14 +397,14 @@ $(document).ready(function(){
|
||||
|
||||
/* Register type */
|
||||
// FIXME: get from form
|
||||
// action: 'new_card_no_user', 'update_card', 'renewal'
|
||||
// action: 'new_card_no_user', 'update_card', 'add_or_renew'
|
||||
if(selectedUser === null) {
|
||||
payload.action = 'new_card_no_user';
|
||||
} else {
|
||||
if(selectedUser.is_member === '1') {
|
||||
payload.action = 'update_card';
|
||||
} else {
|
||||
payload.action = 'renewal'; // Not: could also update card number
|
||||
payload.action = 'add_or_renew'; // Note: could also update card number
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user