$.on if error

This commit is contained in:
James Campos 2012-06-13 06:57:43 -07:00
parent 0392164a4c
commit fed0531521
2 changed files with 2 additions and 0 deletions

View File

@ -3474,6 +3474,7 @@
tc = 'Banned!';
} else if (msg = doc.getElementById('errmsg')) {
tc = msg.textContent;
$.on(self, 'click', DeleteButton["delete"]);
} else {
tc = 'Deleted';
}

View File

@ -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