Zeiterfassung update
This commit is contained in:
@@ -19,6 +19,7 @@ if (typeof columnfilter === "undefined") {
|
||||
var columnfilter;
|
||||
columnfilter = "";
|
||||
}
|
||||
|
||||
if (typeof columnoptions === "undefined") {
|
||||
var columnoptions;
|
||||
columnoptions = "";
|
||||
@@ -280,6 +281,19 @@ $(document).ready(function () {
|
||||
}
|
||||
$(".select2").select2();
|
||||
table.ajax.reload();
|
||||
});
|
||||
$("body").on("click", "#businesstrip", function () {
|
||||
if ($(this).prop('checked') == true) {
|
||||
$('#businesstrip_info').show();
|
||||
$('#businesstrip_info').prop('required', true);
|
||||
|
||||
} else {
|
||||
$('#businesstrip_info').hide();
|
||||
$('#businesstrip_info').val('');
|
||||
$('#businesstrip_info').prop('required', false);
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
$("body").on("click", ".delete-item", function () {
|
||||
if (confirm('Buchung wirklich löschen?')) {
|
||||
@@ -287,11 +301,10 @@ $(document).ready(function () {
|
||||
id: $.trim($(this).data('id')),
|
||||
ajax: 1
|
||||
}).done(function (data) {
|
||||
|
||||
table.ajax.reload();
|
||||
});
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
$('form').submit(function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
Reference in New Issue
Block a user