BUG : Blank contextmenu for Recent Upload + All files

mastern

New Member
YetiShare User
Apr 24, 2013
56
1
0
Hi Adam,
(see attached file)

How to hide the blank contextmenu for Recent Upload and All files menu (Left menu) when users right click on it ?



Need to hide de contextmenu for the two nodes, i tried and can't find a fix for it.

Regards,
M
 

Attachments

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
codes in _account_home_javascript.inc.php, i'm not sure how to edit it to fix this though
 

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
k, found a solution, add the fol code:

else if ($(node).attr('id') == 'recent')
{
var items = {
"Empty": {
"label": "<?php echo "No available options"; ?>"
}
};
}
else if ($(node).attr('id') == 'all')
{
var items = {
"Empty": {
"label": "<?php echo "No available options"; ?>"
}
};
}



place the code from above right after line 452, so between

if ($(node).attr('id') == 'trash')
{
var items = {
"Empty": {
"label": "<?php echo t('empty_trash', 'Empty Trash'); ?>",
"action": function(obj) {
confirmEmptyTrash();
}
}
};
}



****** paste code here


else if ($(node).attr('id') == '-1')
{
var items = {
"Upload": {
"label": "<?php echo t('upload_files', 'Upload Files'); ?>",
"separator_after": true,
"action": function(obj) {
uploadFiles('');
}
},
"Add": {
"label": "<?php echo t('add_folder', 'Add Folder'); ?>",
"action": function(obj) {
showAddFolderForm(obj.attr("id"));
}
}
};
}
 

adam

Administrator
Staff member
Dec 5, 2009
2,043
108
63
Thanks for posting. It'll be fixed for the next release.