mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-17 05:56:01 +01:00
Update listener.js
Fixed issue with characters not refreshing and made it reset values after character creation
This commit is contained in:
@@ -139,6 +139,10 @@ $(function() {
|
||||
"max": item.maxStartingCash,
|
||||
});
|
||||
}
|
||||
|
||||
if (item.type === "refresh") {
|
||||
$("#charactersSection").empty();
|
||||
}
|
||||
})
|
||||
|
||||
function createCharacter(firstName, lastName, dateOfBirth, gender, twtName, department, startingCash, startingBank, id) {
|
||||
@@ -189,6 +193,7 @@ $(function() {
|
||||
startingBank: $("#startingBank").val()
|
||||
}));
|
||||
characterCreatorMenu(false)
|
||||
$("#firstName, #lastName, #dateOfBirth, #twtName, #startingCash, #startingBank").val("")
|
||||
return false
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user