nextcloud/apps
Daniel Calviño Sánchez 449349e901 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-21 20:21:19 +02:00
..
accessibility Fix illegible text color in columns Size and Modified on dark theme: rework after review 2018-10-18 20:49:46 +03:00
admin_audit Use numeric placeholders if there are multiple, so that RTL languages can operate better 2018-10-09 14:32:14 +02:00
cloud_federation_api Update version requirements and versions of shipped apps 2018-09-05 14:27:06 +02:00
comments Merge pull request #11905 from nextcloud/design/noid/tab-icons 2018-10-19 16:53:56 +02:00
dav Merge pull request #11931 from nextcloud/bug/do_not_emit_pre_hooks_twice_objectstore 2018-10-19 19:56:42 +02:00
encryption Merge pull request #10778 from suntorytimed/patch-1 2018-10-11 19:05:38 +02:00
federatedfilesharing [tx-robot] updated from transifex 2018-10-10 00:13:11 +00:00
federation [tx-robot] updated from transifex 2018-10-05 00:12:56 +00:00
files Fix opening a section again in the Files app 2018-10-21 20:21:19 +02:00
files_external Add .l10nignore 2018-10-19 10:41:37 +02:00
files_sharing Fix opening a section again in the Files app 2018-10-21 20:21:19 +02:00
files_trashbin Fix opening a section again in the Files app 2018-10-21 20:21:19 +02:00
files_versions Add .l10nignore files for compiled assets 2018-10-19 10:29:36 +02:00
lookup_server_connector Do not try to contact lookup server without internet connection or URL 2018-10-18 17:49:28 +02:00
oauth2 Add .l10nignore files for compiled assets 2018-10-19 10:29:36 +02:00
provisioning_api Get l10n within NewUserMailHelper to ensure it always uses the new user's language. 2018-10-15 19:01:46 +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-12 17:01:54 +02:00
systemtags Fix opening a section again in the Files app 2018-10-21 20:21:19 +02:00
testing Update version requirements and versions of shipped apps 2018-09-05 14:27:06 +02:00
theming Don't require Same Site Cookies on assets 2018-10-17 09:24:21 +02:00
twofactor_backupcodes [tx-robot] updated from transifex 2018-10-06 00:12:15 +00:00
updatenotification Add .l10nignore files for compiled assets 2018-10-19 10:29:36 +02:00
user_ldap Add missing semicolons 2018-10-19 11:24:24 +02:00
workflowengine Move workflowengine to compiled handlebars 2018-10-15 14:55:25 +02:00