Add sent message to challenge button.
This commit is contained in:
parent
9f41bc3745
commit
4c8a1b4915
@ -749,8 +749,12 @@ const SCENES = {
|
|||||||
for(let r = 0; r < data.users.length; ++r) {
|
for(let r = 0; r < data.users.length; ++r) {
|
||||||
let buttons = [ ];
|
let buttons = [ ];
|
||||||
|
|
||||||
let callback = function() {
|
let callback = function(event) {
|
||||||
MESSAGE_CHALLENGE(this.handle);
|
MESSAGE_CHALLENGE(this.handle);
|
||||||
|
|
||||||
|
event.target.innerText = "Sent";
|
||||||
|
event.target.setAttribute("class", "highlight");
|
||||||
|
event.target.setAttribute("disabled", "");
|
||||||
};
|
};
|
||||||
callback = callback.bind({handle: data.users[r].handle});
|
callback = callback.bind({handle: data.users[r].handle});
|
||||||
buttons.push(UI.button(LANG("challenge"), callback));
|
buttons.push(UI.button(LANG("challenge"), callback));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user