Re: MediaFileView.jsp

Michael Bien <[email protected]> Mon, 9 Aug 2021 18:46:11 +0200
Newsgroups gmane.comp.java.roller.devel
Message-ID <[email protected]>
On 09.08.21 09:51, Greg Huber wrote:
> Spotted this one when deleting a folder:
>
> MediaFileView.jsp
>
> function onDeleteFolder() {
>         if (confirm("<s:text name='mediaFile.deleteFolder.confirm' 
> />")) {
>             document.bookmarks.action = '<s:url 
> action="mediaFileView!deleteFolder" />';
>             document.bookmarks.submit();
>         }
>     }
>
> guess it should be: document.mediaFileViewForm.action and 
> document.mediaFileViewForm.submit();

looks like a copy and paste bug on first glance. However deleting 
folders actually works, right? I ran a quick test and the folder is gone.


>
> Also where is the bookmarks page link now?  editor-menu.xml, for 
> weblogPerms="admin"
>
>  <!-- globalPerms="login" -->
>         <menu-item action="bookmarks"
>                    name="tabbedmenu.bookmarks.allFolders"
>                    weblogPerms="admin"
> subactions="bookmarkAdd,bookmarkEdit,folderAdd,folderEdit,bookmarksImport" 
> />

Its called Blogroll in the menu 
(/roller-ui/authoring/bookmarks.rol?weblog=blog)

the admin user might not have this menu unless the admin has a blog too.

best regards,

michael