Scroll confirm and progress to view when adding a set through the socket
This commit is contained in:
parent
187afdc2cf
commit
ec7fab2a7a
@ -163,6 +163,10 @@ class BrickSetSocket extends BrickSocket {
|
|||||||
|
|
||||||
this.spinner(true);
|
this.spinner(true);
|
||||||
|
|
||||||
|
if (this.html_progress_bar) {
|
||||||
|
this.html_progress_bar.scrollIntoView();
|
||||||
|
}
|
||||||
|
|
||||||
this.socket.emit(this.messages.IMPORT_SET, {
|
this.socket.emit(this.messages.IMPORT_SET, {
|
||||||
set: (set !== undefined) ? set : this.html_input.value,
|
set: (set !== undefined) ? set : this.html_input.value,
|
||||||
owners: owners,
|
owners: owners,
|
||||||
@ -240,6 +244,8 @@ class BrickSetSocket extends BrickSocket {
|
|||||||
})(this, data["set"]);
|
})(this, data["set"]);
|
||||||
|
|
||||||
this.html_card_confirm.addEventListener("click", this.confirm_listener);
|
this.html_card_confirm.addEventListener("click", this.confirm_listener);
|
||||||
|
|
||||||
|
this.html_card_confirm.scrollIntoView();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user