mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/events: adjust event names
1. "change" should be used to passive changes. 2. "submit" should be used to form submits. These are not interchangeable.
This commit is contained in:
@ -11,10 +11,10 @@ class SettingsController {
|
||||
this._view = new SettingsView({
|
||||
settings: settings.get(),
|
||||
});
|
||||
this._view.addEventListener('change', e => this._evtChange(e));
|
||||
this._view.addEventListener('submit', e => this._evtSubmit(e));
|
||||
}
|
||||
|
||||
_evtChange(e) {
|
||||
_evtSubmit(e) {
|
||||
this._view.clearMessages();
|
||||
settings.save(e.detail);
|
||||
this._view.showSuccess('Settings saved.');
|
||||
|
Reference in New Issue
Block a user