$.on if error
This commit is contained in:
parent
0392164a4c
commit
fed0531521
@ -3474,6 +3474,7 @@
|
||||
tc = 'Banned!';
|
||||
} else if (msg = doc.getElementById('errmsg')) {
|
||||
tc = msg.textContent;
|
||||
$.on(self, 'click', DeleteButton["delete"]);
|
||||
} else {
|
||||
tc = 'Deleted';
|
||||
}
|
||||
|
||||
@ -2655,6 +2655,7 @@ DeleteButton =
|
||||
tc = 'Banned!'
|
||||
else if msg = doc.getElementById 'errmsg' # error!
|
||||
tc = msg.textContent
|
||||
$.on self, 'click', DeleteButton.delete
|
||||
else
|
||||
tc = 'Deleted'
|
||||
self.textContent = tc
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user