Notification hide.

This commit is contained in:
cuneytsenturk
2018-11-17 13:13:15 +03:00
parent 8b5fd52d3d
commit e78b786e42
11 changed files with 243 additions and 1 deletions

15
public/js/app.js vendored
View File

@ -340,3 +340,18 @@ function itemTableResize() {
$('#items.table.table-bordered tbody #tr-tax .text-right:first').attr('colspan', colspan);
$('#items.table.table-bordered tbody #tr-total .text-right:first').attr('colspan', colspan);
}
function notificationHide(path, id, token) {
$.ajax({
url: app_url + '/common/notifications/disable',
type: 'POST',
dataType: 'JSON',
data: {path: path, id: id},
headers: { 'X-CSRF-TOKEN': token },
success: function(json) {
if (json['success']) {
$('#notification-' + id).remove();
}
}
});
}