From 4a21ff58cd2d8e08d5072f1d41a371f4a15af3dc Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Fri, 26 Sep 2014 09:33:09 +0200 Subject: [PATCH] Fixing create task popup, enabling blocked textarea only when needed --- app/coffee/modules/common/lightboxes.coffee | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/coffee/modules/common/lightboxes.coffee b/app/coffee/modules/common/lightboxes.coffee index 019e91f4..48138e03 100644 --- a/app/coffee/modules/common/lightboxes.coffee +++ b/app/coffee/modules/common/lightboxes.coffee @@ -176,9 +176,7 @@ BlockingMessageInputDirective = ($log) -> return $log.error "No watch attribute on tg-blocking-message-input directive" $scope.$watch $attrs.watch, (value) -> - return if value is undefined - - if value == true + if value is not undefined and value == true $el.find(".blocked-note").show(400) else $el.find(".blocked-note").hide(400)