diff options
author | alexichi <alexbankai96@gmail.com> | 2016-04-25 13:45:05 +0200 |
---|---|---|
committer | alexichi <alexbankai96@gmail.com> | 2016-04-25 13:45:05 +0200 |
commit | 8140617aeb2f32f7095a443ca743c6d6915739c6 (patch) | |
tree | 86d18cbb6e021b78ba1ce87307447d71d1802ad3 | |
parent | 29d23898c7ec5d3280e9a7f01a6209f8c8f2d5f8 (diff) | |
download | candybox-8140617aeb2f32f7095a443ca743c6d6915739c6.tar.gz candybox-8140617aeb2f32f7095a443ca743c6d6915739c6.tar.bz2 candybox-8140617aeb2f32f7095a443ca743c6d6915739c6.tar.xz candybox-8140617aeb2f32f7095a443ca743c6d6915739c6.zip |
change class of Hire a Miner, and change type submit to button for items
-rw-r--r-- | index.xhtml | 2 | ||||
-rw-r--r-- | js/shop.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/index.xhtml b/index.xhtml index 1685eb9..aa29615 100644 --- a/index.xhtml +++ b/index.xhtml @@ -31,7 +31,7 @@ <span id="guild"></span> <form class="form-horizontal" method="post" action="craftmine.php"> <button class="btn btn-default" type="button" name="withdraw" onclick="withdrawMine()">Withdraw</button> - <button type="button" name="HireMiner" onclick="hireMiner()">Hire one miner</button> + <button class="btn btn-default" type="button" name="HireMiner" onclick="hireMiner()">Hire one miner</button> </form> </div> </div> @@ -25,7 +25,7 @@ function buildShop() { function addItem(ret) { var itemhtml = "<li>"; - itemhtml += "<button type=\"submit\" class=\"btn btn-primary\" onclick=\"useItem('" + ret.name + "')\"><span class=\"item-icon\">" + ret.icon + "</span><br />" + ret.name + "</button>"; + itemhtml += "<button type=\"button\" class=\"btn btn-primary\" onclick=\"useItem('" + ret.name + "')\"><span class=\"item-icon\">" + ret.icon + "</span><br />" + ret.name + "</button>"; itemhtml += "</li>"; var invcontent = document.getElementById("tab3"); |