From 7f7ab87d9df373cfc08b31cf59629d211066ad1e Mon Sep 17 00:00:00 2001 From: Alexander Yakovlev Date: Wed, 2 Mar 2016 23:30:45 +0700 Subject: [PATCH] Fixed canChoose behaviour. --- lib/view.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/view.coffee b/lib/view.coffee index 417ac01..ebbf0df 100644 --- a/lib/view.coffee +++ b/lib/view.coffee @@ -162,7 +162,7 @@ class SaletView optionText = "choice".l({number:i+1}) $option = $("
  • ") $a = $("") - if (room.canChoose.fcall(this, salet, currentRoom)) + if (room.canChoose.fcall(this, salet, currentRoom) == true) $a = $("").attr({href: roomId}) $a.html(optionText) $option.html($a)