From 4e35d342269be73a6d6561b8f7587b5edbb50346 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 22 Jul 2024 19:07:19 +0000 Subject: item buttons redesign - initial checkin --- view/js/main.js | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'view/js') diff --git a/view/js/main.js b/view/js/main.js index 2ad7b86fb..782ce4b62 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -256,19 +256,18 @@ function getConversationSettings() { } function postConversationSettings() { - $.post( - 'settings/conversation', - $('#settings_module_ajax_form').serialize() + "&auto_update=" + next_page - ); - if(next_page === 1) { page_load = true; } - $('#conversation_settings').modal('hide'); - - if(timer) clearTimeout(timer); - timer = setTimeout(updateInit,100); + $.post( + 'settings/conversation', + $('#settings_module_ajax_form').serialize() + "&auto_update=" + next_page + ).done(function() { + $('#conversation_settings').modal('hide'); + toast('Conversation features updated', 'info'); + updateInit(); + }); return false; } @@ -1305,7 +1304,7 @@ function dropItem(url, object, b64mid) { $(object + ', #pinned-wrapper-' + id).remove(); $('body').css('cursor', 'auto'); - toast(aStr.itemdel, 'info') + toast(aStr.itemdel, 'info'); //$.jGrowl(aStr.itemdel, { sticky: false, theme: 'info', life: 3000 }); if (typeof b64mid !== typeof undefined) { @@ -1361,8 +1360,8 @@ function dostar(ident) { $('#starred-' + ident).removeClass('fa-star-o'); $('#star-' + ident).addClass('hidden'); $('#unstar-' + ident).removeClass('hidden'); - var btn_tpl = '
' - $('#wall-item-tools-left-' + ident).prepend(btn_tpl); + var btn_tpl = '
' + $('#wall-item-tools-right-' + ident).prepend(btn_tpl); } else { $('#starred-' + ident).addClass('unstarred'); -- cgit v1.2.3