1
0
Fork 0
mirror of https://gitlab.com/Oreolek/salet.git synced 2024-07-02 06:45:06 +03:00

Fixed canChoose behaviour.

This commit is contained in:
Alexander Yakovlev 2016-03-02 23:30:45 +07:00
parent 9229dfb512
commit 7f7ab87d9d

View file

@ -162,7 +162,7 @@ class SaletView
optionText = "choice".l({number:i+1})
$option = $("<li>")
$a = $("<span>")
if (room.canChoose.fcall(this, salet, currentRoom))
if (room.canChoose.fcall(this, salet, currentRoom) == true)
$a = $("<a>").attr({href: roomId})
$a.html(optionText)
$option.html($a)