add new (old) 'no border' deck
[brisk.git] / web / briskin5 / Obj / briskin5.phh
index 0bbd9d9..7ce17b0 100644 (file)
@@ -69,16 +69,19 @@ $table_wellarr = Array( 'it' => Array ( 'Benvenuto al tavolo. Se almeno tre gioc
                         'en' => Array ( 'EN Benvenuto al tavolo. Se almeno tre giocatori non sbloccano l\'uscita cliccando il lucchetto, chi esce non può risedersi a un qualunque tavolo per '.floor(BAN_TIME/60).' minuti.') );
 
 
-// FIXME - DYNAMIC WITH CACHE AND RELOAD FROM DB
+// DECK STUFF - FIXME - DYNAMIC WITH CACHE AND RELOAD FROM DB
 function deck_keys()
 {
-    return array('xx', 'yy');
+    return array('xx', 'nb', 'yy');
 }
 
+// DECK STUFF
 function deck_id2descr($id, $lang)
 {
     if ($id == 'xx')
         return 'carte originali';
+    else if ($id == 'nb')
+        return 'carte senza bordi';
     else if ($id == 'yy')
         return 'carte strette';
 
@@ -1950,7 +1953,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 = "";');