rename show_or_hide_empty_folder_message to toggle_empty_folder_message

This commit is contained in:
Nariman Jelveh
2024-06-20 13:28:45 -07:00
parent a834fbcc6c
commit 6f0706ffc5
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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;
+1 -1
View File
@@ -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;