mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Change the option immediately on the client side instead of waiting for
a roundtrip to the server.
This commit is contained in:
parent
2c01373143
commit
4ac863726c
1 changed files with 5 additions and 3 deletions
|
|
@ -291,10 +291,12 @@ function onGotOptions(args, kwargs) {
|
|||
function onOptionCheckboxChanged() {
|
||||
var name = $(this).data("setting");
|
||||
var value = this.checked;
|
||||
var options = {};
|
||||
options[name] = value;
|
||||
|
||||
Evennia.msg("webclient_options", [], options);
|
||||
var changedoptions = {};
|
||||
changedoptions[name] = value;
|
||||
Evennia.msg("webclient_options", [], changedoptions);
|
||||
|
||||
options[name] = value;
|
||||
}
|
||||
|
||||
// Silences events we don't do anything with.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue