Change the option immediately on the client side instead of waiting for

a roundtrip to the server.
This commit is contained in:
Simon Vermeersch 2017-01-22 12:26:42 +01:00 committed by Griatch
parent 2c01373143
commit 4ac863726c

View file

@ -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.