mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
more doc because more than 3 contributers means we need it
This commit is contained in:
parent
5d7a153d87
commit
1d123827bc
@ -199,7 +199,9 @@ function getReadEditButton(pk, state) {
|
|||||||
return `<button title='${bReadText}' class='notification-read btn btn-outline-secondary' type='button' pk='${pk}' target='${bReadTarget}'><span class='${bReadIcon}'></span></button>`;
|
return `<button title='${bReadText}' class='notification-read btn btn-outline-secondary' type='button' pk='${pk}' target='${bReadTarget}'><span class='${bReadIcon}'></span></button>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* fills the notification panel when opened
|
||||||
|
**/
|
||||||
function openNotificationPanel() {
|
function openNotificationPanel() {
|
||||||
var html = '';
|
var html = '';
|
||||||
var center_ref = '#notification-center';
|
var center_ref = '#notification-center';
|
||||||
@ -249,7 +251,9 @@ function openNotificationPanel() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* clears the notification panel when closed
|
||||||
|
**/
|
||||||
function closeNotificationPanel() {
|
function closeNotificationPanel() {
|
||||||
$('#notification-center').html(`<p class='text-muted'>{% trans "Notifications will load here" %}</p>`);
|
$('#notification-center').html(`<p class='text-muted'>{% trans "Notifications will load here" %}</p>`);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user