refactor department
This commit is contained in:
@@ -172,6 +172,20 @@ common.dateTimePickerHour = function (id) {
|
||||
format: 'HH:mm'
|
||||
});
|
||||
};
|
||||
common.dateTimePickerById = function (id, format) {
|
||||
$('#' + id).datetimepicker({
|
||||
locale: 'vi',
|
||||
ignoreReadonly: true,
|
||||
format: format
|
||||
});
|
||||
};
|
||||
common.dateTimePickerByClass = function (cls, format) {
|
||||
$('.' + cls).datetimepicker({
|
||||
locale: 'vi',
|
||||
ignoreReadonly: true,
|
||||
format: format
|
||||
});
|
||||
};
|
||||
common.checkAll = function (id, cls) {
|
||||
$('#' + id).on('ifChecked', function (event) {
|
||||
$('.' + cls).iCheck('check');
|
||||
|
||||
Reference in New Issue
Block a user