diff options
author | Mario <mario@mariovavti.com> | 2024-05-02 13:00:45 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-05-02 13:00:45 +0000 |
commit | 058c7d6c13e4cb76efd001ca5be39769825587b0 (patch) | |
tree | 9ec6518429498f263adb3622cf75ed834b24e643 /view/tpl | |
parent | c6116e367a0f32fb95dfecf2d8c778ef97e7d76e (diff) | |
download | volse-hubzilla-058c7d6c13e4cb76efd001ca5be39769825587b0.tar.gz volse-hubzilla-058c7d6c13e4cb76efd001ca5be39769825587b0.tar.bz2 volse-hubzilla-058c7d6c13e4cb76efd001ca5be39769825587b0.zip |
start removing jgrowl
Diffstat (limited to 'view/tpl')
-rw-r--r-- | view/tpl/hdr.tpl | 1 | ||||
-rw-r--r-- | view/tpl/notifications_widget.tpl | 8 |
2 files changed, 6 insertions, 3 deletions
diff --git a/view/tpl/hdr.tpl b/view/tpl/hdr.tpl index e69de29bb..7d20633bc 100644 --- a/view/tpl/hdr.tpl +++ b/view/tpl/hdr.tpl @@ -0,0 +1 @@ +<div id="toast-container" class="position-fixed top-0 end-0 me-4"></div> diff --git a/view/tpl/notifications_widget.tpl b/view/tpl/notifications_widget.tpl index 9ea5ffec6..aa53905ad 100644 --- a/view/tpl/notifications_widget.tpl +++ b/view/tpl/notifications_widget.tpl @@ -337,17 +337,19 @@ sse_setNotificationsStatus(); // notice and info - $.jGrowl.defaults.closerTemplate = '<div>[ ' + aStr.closeAll + ']</div>'; + //$.jGrowl.defaults.closerTemplate = '<div>[ ' + aStr.closeAll + ']</div>'; if(obj.notice) { $(obj.notice.notifications).each(function() { - $.jGrowl(this, { sticky: true, theme: 'notice' }); + toast(this, 'danger'); + //$.jGrowl(this, { sticky: true, theme: 'notice' }); }); } if(obj.info) { $(obj.info.notifications).each(function(){ - $.jGrowl(this, { sticky: false, theme: 'info', life: 10000 }); + toast(this, 'info'); + //$.jGrowl(this, { sticky: false, theme: 'info', life: 10000 }); }); } |