diff options
-rw-r--r-- | js/savegame.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/js/savegame.js b/js/savegame.js index d5a9ba1..c069b5c 100644 --- a/js/savegame.js +++ b/js/savegame.js @@ -2,7 +2,13 @@ function listSaves() { sendRequest("craftmine.php", "op=listSaves", function(ret) { var tmphtml="" for(var i=0; i<ret.length; i++) { - tmphtml += "<label class=\"radio\"><input name=\"saveRadio\" value=\"" + i + "\" type=\"radio\" />" + ret[i] + "</label>\n"; + tmphtml += "<div class=\"input-group\">"; + tmphtml += "<span class=\"input-group-addon\">"; + tmphtml += "<input name=\"saveRadio\" value=\"" + i + "\" type=\"radio\" />"; + tmphtml += "</span>"; + tmphtml += "<input class=\"form-control\" type=\"text\" value=\"" + ret[i] + "\" readonly=\"readonly\" />"; + + tmphtml += "</div>" } console.log(tmphtml); document.getElementById("listsaves").innerHTML = tmphtml; |