diff options
author | piernov <piernov@piernov.org> | 2016-05-07 13:30:20 +0200 |
---|---|---|
committer | piernov <piernov@piernov.org> | 2016-05-07 13:30:20 +0200 |
commit | acfc0e766e266e60302a1cf1f4b18da759eb0243 (patch) | |
tree | 03f18de1c9c128cd2d466d552f7574d162250400 | |
parent | a079e5c34ea3a8337f8a1e1056aa39c32adfac67 (diff) | |
download | candybox-acfc0e766e266e60302a1cf1f4b18da759eb0243.tar.gz candybox-acfc0e766e266e60302a1cf1f4b18da759eb0243.tar.bz2 candybox-acfc0e766e266e60302a1cf1f4b18da759eb0243.tar.xz candybox-acfc0e766e266e60302a1cf1f4b18da759eb0243.zip |
Change save buttons layout
-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; |