Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('.inventory-item').each(function() {
- var $this = $(this);
- var item_type = $(this).data('item-type');
- if (item_type == 'chest') {
- var item_id = $(this).data('item-id');
- $.ajax({
- url: "crates.php?crate=" + item_id,
- type: "get",
- dataType: 'json',
- success: function(data) {
- if (data.status == "success") {
- console.log(data)
- }
- }
- })
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment