removed comments demo

This commit is contained in:
Kenneth Jao 2017-09-16 22:59:59 -04:00
parent 336f7f0382
commit d6cb1818d3

View File

@ -949,6 +949,14 @@ Template.main.events({
}, },
// WORK OVERLAY BUTTONS // WORK OVERLAY BUTTONS
'click #commentSubmit' (event) { // Click to submit a comment. 'click #commentSubmit' (event) { // Click to submit a comment.
if (Session.get("demo")) {
sAlert.error("Not available in demo!", {
effect: 'stackslide',
position: 'top',
timeout: 2000
});
return;
}
workId = Session.get("currentWork")._id; workId = Session.get("currentWork")._id;
var input = document.getElementById('workComment'); var input = document.getElementById('workComment');
comment = input.value; comment = input.value;