JavaScript error in Doc Manager (1.1dev) #639
Comments
When I moved "sort menu-index" to the resource-tree I forgot to correct the tab-index. Should be fixed. |
Thx for fixing! Just curious, why did you remove the sort-menu-index-option completely from DocManager? It took me a while to find out you need to right-click a menu option to sort its children. Why not leave it in DocManager and also add it to the resource-tree? Sometimes it is good and user-friendly to have 2 approches to a certain feature.. Especially since the sorting really fits in the DocManager module, the change is not well documented and in light of the "if its not broken dont fix it" principle |
I thought it makes most sense to move it instead of duplicating it, see #532. Also you commented on that issue so I´m wondering you missed it? |
I did not miss the feature being implemented, but I did miss the fact that the feature was removed from DocManager completely (I thought adding it to the resource tree was extra, not a replacement) @fourroses666 mentions "Would that be a replacement of the tree or just extra option?". The answers following gave me the idea it would be an extra option. But I guess I did not read or understand it properly. But now u mention it, looking at the commit "Sort menu-index: Moved from docManager to tree context-menu " I should have seen it earlier. My bad, sorry. My thoughts: the DocManager is a powerful tool for admins (as mentioned in #532), I think sorting should be there as well, since it is a logical place to find this feature and it has been there forever. Adding an extra option to the tree, to allow non-admins to sort aswell, is a great idea/feature though! What do you guys think on this subject? |
I'd be ok with the sort left in DocManager, though I'll probably end up sorting from the menu tree as it requires a lot less clicking to accomplish the same! |
I agree with both of your points @bossloper. I will probably use the tree-option mostly aswell, now that I know where to find it. |
I love the sound of sorting in the tree - that is a wonderful addition. |
I like the idea, but as its a quite powerfull tool, I would be happy to have a role permission option to switch it off for some users. In worst case scenario a user could mess up a whole site with just one click… and there is no undo available. In recent projects I did hide the menu-index field for editors in certain situations … that could be bypassed by the new tree feature, right? |
@esszett - The 'tree sorting' (menu index sorting) from the right click on the menu tree honours Manager access permissions. So a manager can only sort resource containers (s)he has access to edit. i.e the same permission check used for 'Edit Resource' on the same popup menu. |
Doc Manager version 1.1
2**
or25,25,26
A JS error is thrown:
TypeError: document.range is undefined
for docmanager.js line 81 (https://github.com/modxcms/evolution/blob/develop/assets/modules/docmanager/js/docmanager.js). Anyone else having this error?The text was updated successfully, but these errors were encountered: