sbd-npm 1.3.55 → 1.3.56

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.
Files changed (3) hide show
  1. package/package.json +1 -1
  2. package/status.js +9 -3
  3. package/util.js +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.3.55",
3
+ "version": "1.3.56",
4
4
  "description": "Stock Big Data",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/status.js CHANGED
@@ -415,8 +415,10 @@ $(function () {
415
415
  if (md5) {
416
416
  Util.show_loading();
417
417
  $("#md5").prop('disabled', true);
418
+ $("#md5_encrypt").attr("disabled", true);
418
419
  Util.post("/action", {action: "md5", md5: md5}, function (md5_result) {
419
420
  $("#md5").prop('disabled', false);
421
+ $("#md5_encrypt").attr("disabled", false);
420
422
  $("#md5_result").html("<b class='text-success'>" + md5_result + "</b>");
421
423
  Util.hide_tips();
422
424
  }, "text");
@@ -578,8 +580,13 @@ $(function () {
578
580
  ip_obj.on('show.bs.modal', function (e) {
579
581
  $("#ip_daily_search").click(function() {
580
582
  Util.show_loading();
581
- let data = {active_div: "ip_daily_search", ip: $("#search_ip").val(), location: $("#search_location").val(), referer: $("#search_referer").val()};
582
- Util.post(location.pathname, data, function (j) {
583
+ let payload = {
584
+ active_div: "ip_daily_search",
585
+ ip: $("#search_ip").val(),
586
+ location: $("#search_location").val(),
587
+ referer: $("#search_referer").val()
588
+ };
589
+ Util.post(location.pathname, payload, function (j) {
583
590
  Status.render_ip_daily(j["ip_daily_data"]);
584
591
  Util.hide_tips();
585
592
  });
@@ -591,7 +598,6 @@ $(function () {
591
598
  $("#search_ip").val("");
592
599
  $("#search_location").val("");
593
600
  $("#search_referer").val("");
594
- Util.hide_tips();
595
601
  });
596
602
 
597
603
  let request_arguments = Util.request_arguments();
package/util.js CHANGED
@@ -1012,7 +1012,11 @@ const Util = {
1012
1012
  code_list = code_list.length > 0 ? code_list.join("-") : "all";
1013
1013
  Util.post("/action", {action: "classify_num", code_list: code_list}, function (j) {
1014
1014
  if (j["data"]) {
1015
+ let classify_val = $("#" + classify_id).val();
1015
1016
  Util.render_classify_html(classify_id, j["data"], callback_func);
1017
+ if (classify_val && classify_val !== "0") {
1018
+ $("#" + classify_id).val(classify_val);
1019
+ }
1016
1020
  }
1017
1021
  });
1018
1022
  },