]> source.dussan.org Git - nextcloud-server.git/commit
Trigger pre and post render events in MainFileInfoDetailsView
authorDaniel Calviño Sánchez <danxuliu@gmail.com>
Fri, 9 Jun 2017 05:55:27 +0000 (07:55 +0200)
committerDaniel Calviño Sánchez <danxuliu@gmail.com>
Tue, 13 Jun 2017 14:41:20 +0000 (16:41 +0200)
commit2384703cf64f804c0cd0bc5444b5247447e1c003
tree4a6f5690736e41b341c87c2a8a17af8c1b39b88e
parent706106408c70a3ce9dd4b6569f71d05aa4f588cb
Trigger pre and post render events in MainFileInfoDetailsView

The post-render event makes possible to modify the
MainFileInfoDetailsView element once it has been rendered, which is
needed by OCA.SystemTags.FilesPlugin to add the "Tags" label to the file
details, while the pre-render event makes possible to detach added
elements if needed before the MainFileInfoDetailsView is rendered again,
as that removes the events from the child DOM elements even if they
belong to other views.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
apps/files/js/mainfileinfodetailview.js