fix buggy characters left

This commit is contained in:
Yaman Qalieh 2016-09-04 19:13:44 -04:00
parent 8cbe8e253a
commit 8fd8a9412a

View File

@ -693,7 +693,7 @@ Template.main.events({
sendData("deleteWork");
closeDivFade(document.getElementsByClassName("overlay")[0]);
},
'keyup #workComment' (event) { // Restrict length on comment.
'input #workComment' (event) { // Restrict length on comment.
var chars = 200-event.target.value.length;
document.getElementById("commentRestrict").style.color = "#7E7E7E";
if(chars === 200) { // Don't display if nothing in comment.