diff rlgterm.js @ 51:2eda3909f6a3

rlgterm.js: don't make nonfunctional button. The "Game in progress" text shouldn't look like a button, because clicking it doesn't do anything.
author John "Elwin" Edwards <elwin@sdf.org>
date Mon, 11 Jun 2012 14:04:35 -0700
parents 27b7f0c8b9f0
children 96815eae4ebe
line wrap: on
line diff
--- a/rlgterm.js	Mon Jun 11 12:00:44 2012 -0700
+++ b/rlgterm.js	Mon Jun 11 14:04:35 2012 -0700
@@ -442,9 +442,9 @@
         continue;
       var button = document.createElement("span");
       button.appendChild(document.createTextNode(acttext));
-      button.className = "ibutton";
       if ("s0".indexOf(reply.stat[gname]) >= 0) {
         button.onclick = makeStarter(gname);
+        button.className = "ibutton";
       }
       var actdiv = document.createElement("div");
       actdiv.appendChild(button);