update đồng bộ tất cả thiết bị
This commit is contained in:
@@ -266,6 +266,10 @@ var currentPage = 1;
|
||||
var secondIncrement = 0;
|
||||
|
||||
async function _sync(e) {
|
||||
var checkAll = $("#checkall-device:checked").length;
|
||||
var all = false;
|
||||
if (checkAll > 0)
|
||||
all = true;
|
||||
var lists = [];
|
||||
$.each($("input[name='checkbox-device']:checked"), function () {
|
||||
lists.push({
|
||||
@@ -282,7 +286,8 @@ async function _sync(e) {
|
||||
url: $(e).attr('data-href'),
|
||||
type: 'POST',
|
||||
data: {
|
||||
lists: lists
|
||||
lists: lists,
|
||||
all: all
|
||||
},
|
||||
success: function (data) {
|
||||
common.modalBlock(false);
|
||||
@@ -401,6 +406,10 @@ function getDataSync(data) {
|
||||
var progressLogs = 0;
|
||||
var totalsLogs = 0;
|
||||
function _getLogs(e) {
|
||||
var checkAll = $("#checkall-device:checked").length;
|
||||
var all = false;
|
||||
if (checkAll > 0)
|
||||
all = true;
|
||||
var lists = [];
|
||||
$.each($("input[name='checkbox-device']:checked"), function () {
|
||||
lists.push($(this).val());
|
||||
@@ -414,7 +423,8 @@ function _getLogs(e) {
|
||||
url: $(e).attr('data-href'),
|
||||
type: 'POST',
|
||||
data: {
|
||||
lists: lists
|
||||
lists: lists,
|
||||
all: all
|
||||
},
|
||||
success: function (data) {
|
||||
common.modalBlock(false);
|
||||
|
||||
Reference in New Issue
Block a user