diff --git a/src/UI/UIItem.js b/src/UI/UIItem.js index c3473138..10169c22 100644 --- a/src/UI/UIItem.js +++ b/src/UI/UIItem.js @@ -172,7 +172,7 @@ function UIItem(options){ // updte item_container const item_container = $(options.appendTo).closest('.item-container'); - window.show_or_hide_empty_folder_message(item_container); + window.toggle_empty_folder_message(item_container); // get all the elements needed const el_item = document.getElementById(`item-${item_id}`); @@ -1566,7 +1566,7 @@ $.fn.removeItems = async function(options) { $(this).each(async function() { const parent_container = $(this).closest('.item-container'); $(this).remove(); - window.show_or_hide_empty_folder_message(parent_container); + window.toggle_empty_folder_message(parent_container); }); return this; diff --git a/src/UI/UIWindow.js b/src/UI/UIWindow.js index f0950a84..a4bc5fcc 100644 --- a/src/UI/UIWindow.js +++ b/src/UI/UIWindow.js @@ -3264,7 +3264,7 @@ $.fn.showWindow = async function(options) { return this; }; -window.show_or_hide_empty_folder_message = function(el_item_container){ +window.toggle_empty_folder_message = function(el_item_container){ // if the item container is the desktop, don't show/hide the empty message if($(el_item_container).hasClass('desktop')) return;