sbd-npm 1.3.98 → 1.3.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/util.js +11 -4
package/package.json
CHANGED
package/util.js
CHANGED
@@ -622,7 +622,7 @@ const Util = {
|
|
622
622
|
*/
|
623
623
|
rand_stock: function (rand_btn_id, stock_type) {
|
624
624
|
$("#" + rand_btn_id).click(function () {
|
625
|
-
$(
|
625
|
+
$(this).attr("disabled", true);
|
626
626
|
Util.post("/action", {action: "rand_stock", stock_type: stock_type}, function (j) {
|
627
627
|
$("#" + rand_btn_id).attr("disabled", false);
|
628
628
|
if (j["code"]) {
|
@@ -1447,14 +1447,21 @@ const Util = {
|
|
1447
1447
|
if (fund_code) {
|
1448
1448
|
Util.fetch_public_fund_detail(fund_code, component_id);
|
1449
1449
|
} else {
|
1450
|
-
|
1451
|
-
|
1452
|
-
|
1450
|
+
if (localStorage["modal_public_fund_code"]) {
|
1451
|
+
Util.fetch_public_fund_detail(localStorage["modal_public_fund_code"], component_id);
|
1452
|
+
} else {
|
1453
|
+
let request_arguments = Util.request_arguments();
|
1454
|
+
if (request_arguments["fund_code"]) {
|
1455
|
+
Util.fetch_public_fund_detail(request_arguments["fund_code"], component_id);
|
1456
|
+
}
|
1453
1457
|
}
|
1454
1458
|
}
|
1455
1459
|
});
|
1456
1460
|
component_obj.on('hidden.bs.modal', function () {
|
1457
1461
|
$("#" + component_id + "_body_body").html("<tr><td colspan='14'>Loading...</td></tr>");
|
1462
|
+
if (localStorage["modal_public_fund_code"]) {
|
1463
|
+
localStorage.removeItem("modal_public_fund_code");
|
1464
|
+
}
|
1458
1465
|
Util.hide_tips();
|
1459
1466
|
});
|
1460
1467
|
},
|