nextcloud/apps
Daniel Calviño Sánchez 73125667d4 Fix opening a section again in the Files app
When a section is open in the Files app a "show" event is triggered.
File list objects handle that event by reloading themselves, but only
if the file list was shown at least once. However, the file list objects
of plugins are created when the "show" event is triggered for the first
time for their section; as the file list objects register their handler
for the "show" event when they are created they never handle the first
triggered "show" event, as the handler is set while that event is being
already handled. Therefore, from the point of view of the handler, the
second time that a "show" event was triggered it was seen as if the file
list was shown for the first time, and thus it was not reloaded. Now the
"shown" property is explicitly set for those file lists that are created
while handling a "show" event, which causes them to be reloaded as
expected when opening their section again.

Note that it is not possible to just reload the file list whenever it is
shown; the file list is reloaded also when the directory changes, and
this can happen when the web page is initially loaded and the URL is
parsed. In that case, if file lists were reloaded when shown for the
first time then it could be reloaded twice, one with the default
parameters due to the "show" event and another one with the proper
parameters once the URL was parsed, and the files that appeard in the
list would depend on which response from the server was received the
last.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-10-23 16:44:26 +02:00
..
accessibility Move SCSS variable fetching before the variables.scss to properly calculate color values 2018-08-29 16:47:39 +02:00
admin_audit don't blame email address changers 2018-08-14 17:25:46 +02:00
cloud_federation_api implement federated group shares 2018-07-11 10:11:44 +02:00
comments Add .l10nignore files for compiled assets 2018-10-19 11:40:16 +02:00
dav move disableFreeBusy check from User principal backend to Scheduling Outbox collection. This allows to keep local delivery of scheduling messages while prohibiting FreeBusy requests 2018-10-22 16:01:49 +02:00
encryption [tx-robot] updated from transifex 2018-10-07 00:12:30 +00:00
federatedfilesharing [tx-robot] updated from transifex 2018-10-10 00:13:24 +00:00
federation [tx-robot] updated from transifex 2018-10-05 00:13:09 +00:00
files Fix opening a section again in the Files app 2018-10-23 16:44:26 +02:00
files_external [tx-robot] updated from transifex 2018-10-10 00:13:24 +00:00
files_sharing Fix opening a section again in the Files app 2018-10-23 16:44:26 +02:00
files_trashbin Fix opening a section again in the Files app 2018-10-23 16:44:26 +02:00
files_versions Add .l10nignore files for compiled assets 2018-10-19 11:40:16 +02:00
lookup_server_connector Bump autoloaders 2018-08-10 15:03:22 +02:00
oauth2 Add .l10nignore files for compiled assets 2018-10-19 11:40:16 +02:00
provisioning_api Fix user and group listing with users that have an integer user id 2018-09-12 11:54:22 +02:00
sharebymail Fix a case where "password_by_talk" was not a boolean (e.g. null or "0") and actively cast it to a boolean 2018-10-15 17:51:09 +02:00
systemtags Fix opening a section again in the Files app 2018-10-23 16:44:26 +02:00
testing Bump autoloaders 2018-08-10 15:03:22 +02:00
theming [tx-robot] updated from transifex 2018-10-07 00:12:30 +00:00
twofactor_backupcodes [tx-robot] updated from transifex 2018-10-06 00:12:23 +00:00
updatenotification Add .l10nignore files for compiled assets 2018-10-19 11:40:16 +02:00
user_ldap Properly escape column name in "createFunction" call 2018-10-19 12:12:52 +02:00
workflowengine [tx-robot] updated from transifex 2018-10-10 00:13:24 +00:00