sbd-npm 1.4.40 → 1.4.41

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 (2) hide show
  1. package/package.json +1 -1
  2. package/status.js +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.4.40",
3
+ "version": "1.4.41",
4
4
  "description": "Stock Big Data",
5
5
  "author": "DHQ <dhq314@gmail.com>",
6
6
  "license": "ISC",
package/status.js CHANGED
@@ -560,6 +560,7 @@ $(function () {
560
560
  if (j["machines"].length > 0) {
561
561
  $("#task_machines").change(function() {
562
562
  Util.show_loading();
563
+ $("#task_tips").html("");
563
564
  $("#task_result").val("");
564
565
  Status.fetch_task_data(0);
565
566
  });
@@ -608,6 +609,10 @@ $(function () {
608
609
  clearTimeout(Status.task_timer_id);
609
610
  }
610
611
  Status.task_status = 0;
612
+ if (j["is_new"] && j["is_new"] === 1) {
613
+ $("#task_content").val("").prop('disabled', false);
614
+ $("#task_add").html('添加任务').prop('disabled', false).removeClass("btn-warning").addClass("btn-default");
615
+ }
611
616
  }
612
617
  Util.hide_tips();
613
618
  });