1
0
Fork 0
mirror of https://gitlab.com/Oreolek/salet.git synced 2024-07-04 07:45:03 +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}) optionText = "choice".l({number:i+1})
$option = $("<li>") $option = $("<li>")
$a = $("<span>") $a = $("<span>")
if (room.canChoose.fcall(this, salet, currentRoom)) if (room.canChoose.fcall(this, salet, currentRoom) == true)
$a = $("<a>").attr({href: roomId}) $a = $("<a>").attr({href: roomId})
$a.html(optionText) $a.html(optionText)
$option.html($a) $option.html($a)