Skip to content

Commit

Permalink
rename show_or_hide_empty_folder_message to `toggle_empty_folder_me…
Browse files Browse the repository at this point in the history
…ssage`
  • Loading branch information
jelveh committed Jun 20, 2024
1 parent a834fbc commit 6f0706f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/UI/UIItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/UI/UIWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6f0706f

Please sign in to comment.