missing check on abandon and persistent abandon button fixed
[brisk.git] / web / briskin5 / briskin5.js
index d571b75..ffe6c8b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  *  brisk - briskin5.js
  *
- *  Copyright (C) 2006-2011 Matteo Nastasi
+ *  Copyright (C) 2006-2012 Matteo Nastasi
  *                          mailto: nastasi@alternativeoutput.it 
  *                                  matteo.nastasi@milug.org
  *                          web: http://www.alternativeoutput.it
@@ -115,7 +115,7 @@ function dispose_asta(idx, pnt, nopoint)
        btn.style.left = asta_xarr[i % 3];
        btn.style.top = parseInt(i / 3) * 50 + 24;
        btn.src = "img/astalascio"+lng+".png";
-       btn.style.visibility = "visible";
+       btn.style.visibility = "";
        btn.onclick = function () { safelascio(); };
        }
     else {
@@ -210,7 +210,7 @@ function table_init() {
     show_astat(-2,-2,-2,-2,-2);
     set_iscalling(-1);
 
-    for (i=0 ; i < 8 ; i++) {
+    for (i=0 ; i < CARD_HAND ; i++) {
        Drag.init($("card" + i), card_mouseup_cb);
        for (e = 0 ; e < PLAYERS_N ; e++)
            $("card"+sux[e]+i).style.visibility = "hidden";
@@ -220,7 +220,7 @@ function table_init() {
        $("takes"+sux[i]).style.visibility = "hidden";
        }
 
-    for (i = 0 ; i < 8 ; i++) {
+    for (i=0 ; i < CARD_HAND ; i++) {
        cards_pos[i] = i;
        cards_ea_pos[i] = i;
        cards_ne_pos[i] = i;
@@ -266,7 +266,9 @@ function act_reload()
 {
     window.onunload = null;
     window.onbeforeunload = null;
-    document.location.reload();
+    // alert(document.location.toString());
+    document.location.assign("index.php");
+    // document.location.reload();
 }
 
 function set_names(so,ea,ne,nw,we)