From: Matteo Nastasi Date: Sun, 3 May 2020 11:49:59 +0000 (+0200) Subject: fixed callerimg set X-Git-Tag: v5.10.0~23 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=10a13fbf19b5aa8f072d0c992af9cac19a66b19d;p=brisk.git fixed callerimg set --- diff --git a/web/briskin5/Obj/briskin5.phh b/web/briskin5/Obj/briskin5.phh index 0bbd9d9..dea3e87 100644 --- a/web/briskin5/Obj/briskin5.phh +++ b/web/briskin5/Obj/briskin5.phh @@ -1950,7 +1950,7 @@ function briscola_show($bri, $table, $user) $ret .= sprintf('$("caller").style.backgroundImage = \'url("img/brisk_caller_sand%d.png")\';', $table->asta_win); - $ret .= sprintf('$("callerimg").src = "img/%02d.png";', $table->briscola); + $ret .= sprintf('$("callerimg").setAttribute("data-card-id", "%02d"; ', $table->briscola); $ret .= sprintf('$("caller").style.visibility = "visible";'); $ret .= sprintf('$("chooseed").style.visibility = "hidden";'); $ret .= sprintf('$("astalascio").style.visibility = "";');