aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-05-02 14:44:16 +0000
committerMario <mario@mariovavti.com>2024-05-02 14:44:16 +0000
commit98c3e2f93f18554364e26e9cf25473d36641a173 (patch)
treeada9ebceef9f3d8cd4acdc1eabd673b0ada8ddf9 /view/tpl
parent483221e2a87b36c85662fd2a941f436be6067ac9 (diff)
downloadvolse-hubzilla-98c3e2f93f18554364e26e9cf25473d36641a173.tar.gz
volse-hubzilla-98c3e2f93f18554364e26e9cf25473d36641a173.tar.bz2
volse-hubzilla-98c3e2f93f18554364e26e9cf25473d36641a173.zip
remove jgrowl
Diffstat (limited to 'view/tpl')
-rw-r--r--view/tpl/cdav_calendar.tpl4
-rw-r--r--view/tpl/contact_edit_modal.tpl8
-rw-r--r--view/tpl/invite.tpl1
-rw-r--r--view/tpl/notifications_widget.tpl3
-rw-r--r--view/tpl/totp_setup.tpl4
5 files changed, 8 insertions, 12 deletions
diff --git a/view/tpl/cdav_calendar.tpl b/view/tpl/cdav_calendar.tpl
index 88aa0789d..5d8c6115f 100644
--- a/view/tpl/cdav_calendar.tpl
+++ b/view/tpl/cdav_calendar.tpl
@@ -480,7 +480,7 @@ function on_submit() {
eventSource.refetch();
}
else {
- $.jGrowl('{{$disabled_warning}}', { sticky: false, theme: 'notice', life: 10000 });
+ toast('{{$disabled_warning}}', 'danger');
}
reset_form();
});
@@ -506,7 +506,7 @@ function on_submit() {
eventSource.refetch();
}
else {
- $.jGrowl('{{$disabled_warning}}', { sticky: false, theme: 'notice', life: 10000 });
+ toast('{{$disabled_warning}}', 'danger');
}
reset_form();
});
diff --git a/view/tpl/contact_edit_modal.tpl b/view/tpl/contact_edit_modal.tpl
index 72feb7138..b9d9ead08 100644
--- a/view/tpl/contact_edit_modal.tpl
+++ b/view/tpl/contact_edit_modal.tpl
@@ -54,11 +54,11 @@
$.post('contactedit/' + poi, form_data, function(data) {
if (!data.success) {
- $.jGrowl(data.message, {sticky: false, theme: 'notice', life: 10000});
+ toast(data.message, 'danger');
return;
}
activate(data);
- $.jGrowl(data.message, {sticky: false, theme: ((data.success) ? 'info' : 'notice'), life: ((data.success) ? 3000 : 10000)});
+ toast(data.message, ((data.success) ? 'info' : 'danger'));
// $('#edit-modal').modal('hide');
});
@@ -70,7 +70,7 @@
$.get('contactedit/' + poi + '/' + cmd, function(data) {
$('#edit-modal-tools').html(data.tools);
- $.jGrowl(data.message, {sticky: false, theme: ((data.success) ? 'info' : 'notice'), life: ((data.success) ? 3000 : 10000)});
+ toast(data.message, ((data.success) ? 'info' : 'danger'));
if (cmd === 'drop') {
if ($('#contact-entry-wrapper-' + poi).length) {
$('#contact-entry-wrapper-' + poi).fadeOut();
@@ -110,7 +110,7 @@
$('.contact-edit-icon-' + poi).hide();
$.get('contactedit/' + poi, function(data) {
if (!data.success) {
- $.jGrowl(data.message, {sticky: false, theme: 'notice', life: 10000});
+ toast(data.message, 'danger');
return;
}
$('#edit-modal').modal('show');
diff --git a/view/tpl/invite.tpl b/view/tpl/invite.tpl
index 304816e0b..08c984a5e 100644
--- a/view/tpl/invite.tpl
+++ b/view/tpl/invite.tpl
@@ -76,7 +76,6 @@
' .zai_n { width: 5em; text-align: center; }'+
' #id_zaiexpire_fs { display: inline-block; }'+
' .invites { text-transform: capitalize; }'+
- ' .jGrowl-message { font-family: monospace; }'+
'</style>');
$('#zai-txt').attr('placeholder','{{$personal_pointer}}');
zaitx();
diff --git a/view/tpl/notifications_widget.tpl b/view/tpl/notifications_widget.tpl
index aa53905ad..a9d98dae9 100644
--- a/view/tpl/notifications_widget.tpl
+++ b/view/tpl/notifications_widget.tpl
@@ -337,19 +337,16 @@
sse_setNotificationsStatus();
// notice and info
- //$.jGrowl.defaults.closerTemplate = '<div>[ ' + aStr.closeAll + ']</div>';
if(obj.notice) {
$(obj.notice.notifications).each(function() {
toast(this, 'danger');
- //$.jGrowl(this, { sticky: true, theme: 'notice' });
});
}
if(obj.info) {
$(obj.info.notifications).each(function(){
toast(this, 'info');
- //$.jGrowl(this, { sticky: false, theme: 'info', life: 10000 });
});
}
diff --git a/view/tpl/totp_setup.tpl b/view/tpl/totp_setup.tpl
index 6f995edf1..1f028f6f9 100644
--- a/view/tpl/totp_setup.tpl
+++ b/view/tpl/totp_setup.tpl
@@ -50,12 +50,12 @@
{totp_code: document.getElementById('totp_test').value},
function(data) {
if (data['status']) {
- $.jGrowl('{{$test_pass}}', { sticky: false, theme: 'info', life: 10000 });
+ toast('{{$test_pass}}', 'info');
let e = document.getElementById('mfa-submit-wrapper');
e.classList.remove('d-none');
return;
}
- $.jGrowl('{{$test_fail}}', { sticky: false, theme: 'notice', life: 10000 });
+ toast('{{$test_fail}}', 'danger');
}
);
}