mirror of
https://github.com/HeyPuter/puter
synced 2024-11-15 06:15:47 +00:00
rename show_or_hide_empty_folder_message
to toggle_empty_folder_message
This commit is contained in:
parent
a834fbcc6c
commit
6f0706ffc5
@ -172,7 +172,7 @@ function UIItem(options){
|
|||||||
|
|
||||||
// updte item_container
|
// updte item_container
|
||||||
const item_container = $(options.appendTo).closest('.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
|
// get all the elements needed
|
||||||
const el_item = document.getElementById(`item-${item_id}`);
|
const el_item = document.getElementById(`item-${item_id}`);
|
||||||
@ -1566,7 +1566,7 @@ $.fn.removeItems = async function(options) {
|
|||||||
$(this).each(async function() {
|
$(this).each(async function() {
|
||||||
const parent_container = $(this).closest('.item-container');
|
const parent_container = $(this).closest('.item-container');
|
||||||
$(this).remove();
|
$(this).remove();
|
||||||
window.show_or_hide_empty_folder_message(parent_container);
|
window.toggle_empty_folder_message(parent_container);
|
||||||
});
|
});
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
@ -3264,7 +3264,7 @@ $.fn.showWindow = async function(options) {
|
|||||||
return this;
|
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 the item container is the desktop, don't show/hide the empty message
|
||||||
if($(el_item_container).hasClass('desktop'))
|
if($(el_item_container).hasClass('desktop'))
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user