Skip to content

Commit 87e27fe

Browse files
committed
Fix shop.js for supports of 32bit patches
1 parent 2b3fd57 commit 87e27fe

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

public/shop/js/shop.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,17 @@ function shopGetAccountInfo(callback) {
3434
return apiRequest("ShopGetAccountInfo", {}, "json", callback);
3535
}
3636

37-
function loadMenu(active = 0) {
37+
function loadMenu(active) {
38+
if (!active) {
39+
active = 0;
40+
}
41+
3842
apiRequest("ShopPartialMenu?active=" + active, null, "html", function(result) {
3943
$("#menu").html(result);
4044
});
4145
}
4246

43-
function loadContent(page, params = null) {
47+
function loadContent(page, params) {
4448
// $(".item-icon").attr("src", "");
4549
$(".navbar-fixed-top .nav li").removeClass("active");
4650
$(".navbar-fixed-top .nav li a[data-page='" + page.split("?")[0] + "']").parent().addClass("active");
@@ -58,7 +62,7 @@ function loadContent(page, params = null) {
5862
});
5963
}
6064

61-
function loadContentProduct(params = null) {
65+
function loadContentProduct(params) {
6266
apiRequest("ShopPartialProduct", params, "html", function(result) {
6367
$("#content").hide();
6468
$("#content_product").html(result).show().animate({ scrollTop: 0 }, 0);

0 commit comments

Comments
 (0)