sbd-npm 1.4.24 → 1.4.25
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/status.js +11 -1
package/package.json
CHANGED
package/status.js
CHANGED
@@ -539,12 +539,22 @@ $(function () {
|
|
539
539
|
hw_html.push('</div>');
|
540
540
|
hw_html.push(' <a href="#" data-toggle="modal" data-target=".client_action_modal" data-type="2" class="btn btn-warning">添加任务</a>');
|
541
541
|
hw_html.push('<a href="#" data-toggle="modal" data-target=".client_cookie_modal" class="btn btn-warning">雪球Cookie</a>');
|
542
|
+
hw_html.push('<a href="#" id="machine_refresh" class="btn btn-warning">刷新Machine</a>');
|
542
543
|
hw_html.push('</form>');
|
543
544
|
hw_html.push('<div id="worker_process_div"></div>');
|
544
545
|
$("#worker_div").html(hw_html.join(""));
|
545
546
|
if (!document.getElementById("client_action_add")) {
|
546
547
|
Status.init_client_action_modal();
|
547
548
|
Status.init_client_cookie_modal();
|
549
|
+
$("#machine_refresh").click(function() {
|
550
|
+
Util.show_loading();
|
551
|
+
$("#machine_refresh").attr("disabled", true).html("正在处理中...");
|
552
|
+
Util.post(location.pathname, {active_div: "machine_refresh"}, function (j) {
|
553
|
+
$("#machine_refresh").html("刷新Machine").attr("disabled", false);
|
554
|
+
Util.hide_tips();
|
555
|
+
});
|
556
|
+
return false;
|
557
|
+
});
|
548
558
|
}
|
549
559
|
}
|
550
560
|
Util.post(location.pathname, {active_div: localStorage[Status.tab_token], is_init: is_init, machine_id: $("#workers").val()}, function (j) {
|
@@ -604,7 +614,7 @@ $(function () {
|
|
604
614
|
html.push("</tr>");
|
605
615
|
});
|
606
616
|
Util.render_table_html("worker_process_div_body", html);
|
607
|
-
$("#worker_process_tip").html('共 <span class="label label-info">' + process_num + '</span> 进程,最后更新时间:' + Util.seconds_to_format(j["date"]));
|
617
|
+
$("#worker_process_tip").html('共 <span class="label label-info">' + process_num + '</span> 进程,最后更新时间:' + Util.seconds_to_format(j["date"]) + ',Revision:' + j["revision"] + ',MachineId:' + j["machine_id"]);
|
608
618
|
$("#workers option[value='" + $("#workers").val() + "']").text(j["ip"] + "(" + process_num + ")");
|
609
619
|
}
|
610
620
|
Util.hide_tips();
|