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:
@ -35,7 +35,7 @@ class CommentListControl extends events.EventTarget {
|
||||
const commentListItemNode = document.createElement('li');
|
||||
const commentControl = new CommentControl(
|
||||
commentListItemNode, comment);
|
||||
events.proxyEvent(commentControl, this, 'change');
|
||||
events.proxyEvent(commentControl, this, 'submit');
|
||||
events.proxyEvent(commentControl, this, 'score');
|
||||
events.proxyEvent(commentControl, this, 'delete');
|
||||
this._commentIdToNode[comment.id] = commentListItemNode;
|
||||
|
Reference in New Issue
Block a user