Remove obsolete characterSelected event
This commit is contained in:
parent
fd10eaf037
commit
e7b29babe9
|
@ -750,7 +750,6 @@ export function dragElement(elmnt) {
|
|||
observer.disconnect()
|
||||
console.debug(`Saving ${elmntName} UI position`)
|
||||
saveSettingsDebounced();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -925,16 +924,6 @@ $("document").ready(function () {
|
|||
$(document).on("click", ".character_select", function () {
|
||||
setActiveCharacter($(this).find('.avatar').attr('title'));
|
||||
setActiveGroup(null);
|
||||
|
||||
const chid = $(this).attr('chid');
|
||||
eventSource.emit(
|
||||
'characterSelected',
|
||||
{detail: {id: chid, character: characters[chid]}})
|
||||
.then(r => {
|
||||
SaveLocal('ActiveChar', chid);
|
||||
SaveLocal('ActiveGroup', null);
|
||||
});
|
||||
|
||||
saveSettingsDebounced();
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue