kumarsivarajan / mollify

Automatically exported from code.google.com/p/mollify
0 stars 0 forks source link

Hide top option in folder #516

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Create A & B folder
2.I want to hide Create new folder, upload files,Home & setting icon in B 
folder and want to display all this option in A folder

What version of the product are you using? On what operating system?
2.2.9

Please provide any additional information below.

Original issue reported on code.google.com by john.bot...@gmail.com on 21 Feb 2014 at 2:46

GoogleCodeExporter commented 8 years ago
Why would you do that? If user has no write permissions, there are no upload 
etc options, but there is no mechanism to hide elements on random criteria.

Original comment by samuli.j...@gmail.com on 22 Feb 2014 at 10:28

GoogleCodeExporter commented 8 years ago
when I click on delete from Top menu than I am not gettng ctx object in 
mollify.js file, so can you please tell me How can I get ctx object ? because I 
want to make custom changes.

What is difference between mollify.js and mollify.full.js ?

Thanks

Original comment by john.bot...@gmail.com on 24 Feb 2014 at 1:24

GoogleCodeExporter commented 8 years ago
Top menu? You mean the menu next to the folder name? These menu items are not 
customizable in same way as file view actions (if the "ctx" is the one 
mentioned here: 
https://code.google.com/p/mollify/wiki/ClientSettings#Actions_customizations)

These file list actions are the actions made on the list (click row, right 
click row, double click row etc), not the actions in a menu somewhere, ctx 
wouldn't even apply since the ctx tells about the action made in the list (what 
kind of file view, which column etc).

You can add your own actions to these menus, but changing existing actions 
needs modifying the source. And the "full.js" is the one with all required 
libraries (jquery etc) so that you need to load only one script.

Original comment by samuli.j...@gmail.com on 25 Feb 2014 at 5:29

GoogleCodeExporter commented 8 years ago
I had applied the same code as you suggested but still i am not getting ctc 
object in top menu. I want in itemCollectionHandler : function(items) js 
function.

Original comment by john.bot...@gmail.com on 26 Feb 2014 at 10:17

GoogleCodeExporter commented 8 years ago
You did not understand, those actions don't have ctx because they are NOT file 
list actions. They are generic actions for items/item collections that can be 
shown anywhere.

Original comment by samuli.j...@gmail.com on 26 Feb 2014 at 11:02

GoogleCodeExporter commented 8 years ago
Just want to add that of course it would be technically possible to add generic 
context object to these actions as well, which would vary based on the place 
where the action is shown.

But in your version there is no ctx for item and item collection actions.

Original comment by samuli.j...@gmail.com on 26 Feb 2014 at 11:27