server/apps/files/js
Daniel Calviño Sánchez e39db808fb Fix rendering of the sidebar in Files app
When a view is rendered it should not be concerned with where it is
going to be placed in the document; in general this should be a
responsibility of the object using the view.

Moreover, when the details view is rendered it should simply prepare a
skeleton that includes the root elements provided by the plugins; those
elements will be updated by the plugins as needed when a file or a tab
is selected.

Finally, the details view should not be explicitly rendered. The
rendering removes the previous elements, but that is needed only when
the details view is in a dirty state, that is, when new plugins were
added since the last time that it was rendered. However, that dirty
state is internally handled, and the view is automatically rendered
again if needed when a file info is set.

Due to all that the details view is no longer explicitly rendered when
updating it with a different file. Also, as each file list has its own
details view, and each details view has its own element, but there can
be only one details view/sidebar element in the document, when the file
list updates the details view it also replaces the current one in the
document with its own details view if needed (that is, if it is not the
current one already).

Besides that, when the element of a details view is replaced with the
element of a different details view the old one should be detached from
the document, but never removed. Otherwise the event handlers would not
work when that element is attached again later (when changing to a
different section in the Files app and then going back to the previous
one).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-22 05:58:25 +01:00
..
templates Add icon to file sidebar tabs 2018-10-18 15:54:17 +02:00
admin.js Do not error on maxUploadChange 2016-08-22 20:25:58 +02:00
app.js Fixed scrolling container 2018-07-24 11:01:11 +02:00
breadcrumb.js Remove deprecated SVG helpers for old IEs 2018-10-08 16:33:41 +02:00
detailfileinfoview.js Make file actions work from sidebar 2015-08-12 17:30:20 +02:00
detailsview.js Fix rendering of the sidebar in Files app 2018-11-22 05:58:25 +01:00
detailtabview.js Merge pull request #11647 from nextcloud/make-possible-for-tab-views-to-add-css-classes-to-their-container 2018-10-31 15:37:48 +01:00
favoritesfilelist.js Remove event handler no longer needed 2018-10-21 20:21:59 +02:00
favoritesplugin.js Fix jsdocs build on server repo 2018-10-24 15:41:08 +02:00
file-upload.js Ask before cancelling an ongoing upload 2018-11-05 10:11:50 +01:00
fileactions.js Fix whitespace and file action cleanup 2018-11-20 19:46:49 +01:00
fileactionsmenu.js Move fileactionsmenu to compiled handlebars 2018-10-15 15:51:40 +02:00
fileinfomodel.js added quit option in commentstabview.js 2017-03-23 13:12:29 -06:00
filelist.js Fix rendering of the sidebar in Files app 2018-11-22 05:58:25 +01:00
filemultiselectmenu.js Move the filemultiselectmenu over to compiled handlebars 2018-10-01 17:15:08 +02:00
files.js Remove deprecated and unused fileDownloadPath 2018-10-08 16:46:36 +02:00
filesummary.js Move to 1 template file for files 2018-10-01 17:15:07 +02:00
gotoplugin.js Fix closing details view when viewing file in folder 2017-04-25 17:45:42 +02:00
jquery-visibility.js update jquery-visibility in files app 2015-08-17 09:39:21 +02:00
jquery.fileupload.js Add callback to clean up after misbehaved drag and drop events 2018-06-08 19:15:27 +02:00
keyboardshortcuts.js
mainfileinfodetailview.js Remove OC.scaleFixForIE8 2018-10-08 16:17:16 +02:00
merged-index.json Move to 1 template file for files 2018-10-01 17:15:07 +02:00
navigation.js Refactored Variablename to trashElement 2018-10-02 08:15:05 +02:00
newfilemenu.js Add missing variable declarations 2018-10-19 20:17:55 +02:00
recentfilelist.js block user sorting in recent files 2016-07-22 15:20:55 +02:00
recentplugin.js Fix jsdocs build on server repo 2018-10-24 15:41:08 +02:00
search.js Added new search standard 2018-06-19 23:53:20 +02:00
sidebarpreviewmanager.js Add missing variable declarations 2018-10-19 20:17:55 +02:00
sidebarpreviewtext.js Do not fetch the whole text file for the sidebar preview 2017-08-03 20:32:59 +02:00
tagsplugin.js Fix jsdocs build on server repo 2018-10-24 15:41:08 +02:00
templates.js Add icon to file sidebar tabs 2018-10-18 15:54:17 +02:00
upload.js Improved Javascript docs for JSDoc 2014-10-31 13:43:30 +01:00