Tabs instead of spaces (#416)

* Tabs instead of spaces
This commit is contained in:
Evil Puncker
2020-06-02 12:50:52 -03:00
committed by GitHub
parent 5a80034915
commit 0fae6d6e5f
20 changed files with 786 additions and 787 deletions

View File

@@ -376,18 +376,18 @@ foreach ($shop_list as $key => $offer) {
<?php if ($shop['enableShopConfirmation']) { ?>
<script src="https://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<script>
$(document).ready(function(){
$(".needconfirmation").each(function(e){
$(this).click(function(e){
var itemname = $(this).attr("data-item-name");
var itemcost = $(this).attr("data-item-cost");
$(document).ready(function(){
$(".needconfirmation").each(function(e){
$(this).click(function(e){
var itemname = $(this).attr("data-item-name");
var itemcost = $(this).attr("data-item-cost");
var r = confirm("Do you really want to purchase "+itemname+" for "+itemcost+" points?")
if(r == false){
e.preventDefault();
}
});
});
});
});
});
});
</script>
<?php }