update thống kê
This commit is contained in:
@@ -186,6 +186,7 @@ common.dateTimePickerByClass = function (cls, format) {
|
||||
$('.' + cls).datetimepicker({
|
||||
locale: 'vi',
|
||||
ignoreReadonly: true,
|
||||
sideBySide: true,
|
||||
format: format
|
||||
});
|
||||
};
|
||||
@@ -251,6 +252,9 @@ common.form = function (e, obj, bigSize) {
|
||||
if (obj === 'schedule') {
|
||||
common.dateTimePickerByClass("select-picker", "HH:mm");
|
||||
}
|
||||
if (obj === 'user') {
|
||||
$('#role').select2({tags: true, tokenSeparators: [',']});
|
||||
}
|
||||
},
|
||||
error: function (jqXHR, textStatus, errorThrown) {
|
||||
common.modalBlock(false);
|
||||
|
||||
11
web/js/logs.js
Normal file
11
web/js/logs.js
Normal file
@@ -0,0 +1,11 @@
|
||||
$(function () {
|
||||
common.dateTimePickerByClass("time-picker", "HH:mm:ss DD/MM/YYYY");
|
||||
});
|
||||
|
||||
function _export(e) {
|
||||
window.location = $(e).attr("data-href") + "?from=" + $("input[name='FromTime']").val() + "&to=" + $("input[name='ToTime']").val();
|
||||
}
|
||||
|
||||
function search(e) {
|
||||
window.location = $(e).attr("data-href") + "?type=all" + "&from=" + $("input[name='FromTime']").val() + "&to=" + $("input[name='ToTime']").val();
|
||||
}
|
||||
Reference in New Issue
Block a user