update control logs

This commit is contained in:
2020-12-04 15:13:14 +07:00
parent 3ef04dfb5a
commit 811ed32e04
13 changed files with 282 additions and 36 deletions

11
web/js/control-logs.js Normal file
View File

@@ -0,0 +1,11 @@
$(function () {
common.dateTimePickerByClass("datepicker", "HH:mm DD/MM/YYYY");
});
function _search(e) {
var location = $(e).attr("data-href") + "?from=" + $("input[name='From']").val() + "&to=" + $("input[name='To']").val();
location = location + "&name=" + $("input[name='NameSearch']").val();
location = location + "&type=" + $("select[name='TypeSearch']").val();
location = location + "&gender=" + $("select[name='GenderSearch']").val();
window.location = location;
}

View File

@@ -59,6 +59,7 @@ function _formModified(e) {
},
success: function (data) {
common.modalBlock(false);
$("#upload-btn").addClass("hidden");
$("select[name='Type']").val(data.type);
$("input[name='Name']").val(data.name);
$("select[name='Gender']").val(data.gender);
@@ -186,6 +187,7 @@ function batchDelete(e) {
function _form() {
$("#form").removeClass("hidden");
$("#upload-btn").removeClass("hidden");
$("#FaceImage").attr("src", "/images/user2-160x160.jpg");
}