From af905f899daafed0e3e69a3de30e6a84847a1b62 Mon Sep 17 00:00:00 2001 From: Kenneth Jao Date: Tue, 25 Apr 2017 03:34:59 -0400 Subject: [PATCH] re-added current-work updating --- hourglass/client/main/main.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hourglass/client/main/main.js b/hourglass/client/main/main.js index db68385..60d77fc 100644 --- a/hourglass/client/main/main.js +++ b/hourglass/client/main/main.js @@ -1071,9 +1071,9 @@ updateWork = function(id, fields, type) { return work._id !== id; }); myWork.push(workObj); - /*if(!Session.equals("currentWork", null) && Session.get("currentWork")._id === id) { Notification beta, probably rework. + if(!Session.equals("currentWork", null) && Session.get("currentWork")._id === id) { //Notification beta, probably rework. Session.set("currentWork", workObj); - if($(".overlay").css("display") !== "none") { // If currently viewing work. + /*if($(".overlay").css("display") !== "none") { // If currently viewing work. var message = Object.keys(fields)[0].replace("dueDate", "due date"); if(!workChanger && message !== "comments" && message !== "done" && message !== "confirmations") sAlert.success("The " + message + " of this work was updated by someone else!", { effect: 'stackslide', @@ -1081,8 +1081,8 @@ updateWork = function(id, fields, type) { timeout: 1500 }); workChanger = false; - } - }*/ + }*/ + } } Session.set("myWork", myWork);