Commit Graph

1027 Commits

Author SHA1 Message Date
Roeland Jago Douma f4efa550c3
Merge pull request #11996 from nextcloud/stable13-11967-fix-opening-a-section-again-in-the-files-app
[stable13] Fix opening a section again in the Files app
2018-10-23 20:21:35 +02:00
Daniel Calviño Sánchez 4f5b072c74 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 17:02:54 +02:00
Nextcloud bot 5de5db0280
[tx-robot] updated from transifex 2018-10-23 14:54:51 +00:00
Nextcloud bot 8d96b3790d
[tx-robot] updated from transifex 2018-10-07 00:12:38 +00:00
Nextcloud bot fbab9d66d6
[tx-robot] updated from transifex 2018-10-05 00:13:21 +00:00
Nextcloud bot 99c5005114
[tx-robot] updated from transifex 2018-10-04 00:12:27 +00:00
Nextcloud bot 8ef7d31599
[tx-robot] updated from transifex 2018-10-03 16:59:11 +00:00
Nextcloud bot e07611ef09
[tx-robot] updated from transifex 2018-10-02 00:13:06 +00:00
Nextcloud bot 052469e5e4
[tx-robot] updated from transifex 2018-10-01 00:12:49 +00:00
Nextcloud bot 0201f011c1
[tx-robot] updated from transifex 2018-09-30 00:12:16 +00:00
Nextcloud bot 7695f02852
[tx-robot] updated from transifex 2018-09-29 00:12:26 +00:00
Nextcloud bot f678794470
[tx-robot] updated from transifex 2018-09-26 00:12:33 +00:00
Nextcloud bot 8a0ced9d7e
[tx-robot] updated from transifex 2018-09-25 00:12:22 +00:00
Nextcloud bot f2b6e38949
[tx-robot] updated from transifex 2018-09-21 00:12:22 +00:00
Nextcloud bot ba97e60ffc
[tx-robot] updated from transifex 2018-09-17 00:12:40 +00:00
Nextcloud bot 2d9a488cf3
[tx-robot] updated from transifex 2018-09-14 00:12:43 +00:00
Nextcloud bot 95e2d5f170
[tx-robot] updated from transifex 2018-09-12 00:12:24 +00:00
Nextcloud bot ef3789e16b
[tx-robot] updated from transifex 2018-09-09 00:13:18 +00:00
Nextcloud bot 972e8c3399
[tx-robot] updated from transifex 2018-09-06 00:13:04 +00:00
Nextcloud bot 90ab77d8bb
[tx-robot] updated from transifex 2018-09-01 00:12:27 +00:00
Nextcloud bot 9bde06aab3
[tx-robot] updated from transifex 2018-08-31 00:12:18 +00:00
Nextcloud bot 9db4afce72
[tx-robot] updated from transifex 2018-08-30 00:12:18 +00:00
Nextcloud bot 1769029910
[tx-robot] updated from transifex 2018-08-27 00:12:24 +00:00
Nextcloud bot 12a3f776a1
[tx-robot] updated from transifex 2018-08-24 00:12:32 +00:00
Nextcloud bot 112719f457
[tx-robot] updated from transifex 2018-08-23 00:13:11 +00:00
Nextcloud bot ff3b132382
[tx-robot] updated from transifex 2018-08-22 00:12:24 +00:00
Nextcloud bot 47ea2c17fd
[tx-robot] updated from transifex 2018-08-16 00:12:35 +00:00
Nextcloud bot 5327e3b4ce
[tx-robot] updated from transifex 2018-08-13 00:12:18 +00:00
Nextcloud bot 66d74f6e56
[tx-robot] updated from transifex 2018-08-05 00:12:38 +00:00
Nextcloud bot ab6741427b
[tx-robot] updated from transifex 2018-07-31 00:12:21 +00:00
Nextcloud bot 628a0434a5
[tx-robot] updated from transifex 2018-07-27 00:12:29 +00:00
Nextcloud bot bfd533b2f1
[tx-robot] updated from transifex 2018-07-19 00:12:14 +00:00
Nextcloud bot 9a92629a94
[tx-robot] updated from transifex 2018-07-17 00:12:18 +00:00
Nextcloud bot ef1a695707
[tx-robot] updated from transifex 2018-07-11 00:12:24 +00:00
Nextcloud bot 7843a9b21a
[tx-robot] updated from transifex 2018-07-10 08:21:28 +00:00
Nextcloud bot 37063bc657
[tx-robot] updated from transifex 2018-06-29 00:12:27 +00:00
Nextcloud bot c4e79862c4
[tx-robot] updated from transifex 2018-06-27 00:12:10 +00:00
Nextcloud bot ea89600ca0
[tx-robot] updated from transifex 2018-06-25 00:12:07 +00:00
Nextcloud bot 3ac6f4d504
[tx-robot] updated from transifex 2018-06-22 00:12:31 +00:00
Nextcloud bot 4d8285553a
[tx-robot] updated from transifex 2018-06-20 00:12:46 +00:00
Nextcloud bot 59a27ceb13
[tx-robot] updated from transifex 2018-06-12 00:13:07 +00:00
Nextcloud bot 3595aa68b9
[tx-robot] updated from transifex 2018-06-01 00:12:48 +00:00
Nextcloud bot cc6317f2af
[tx-robot] updated from transifex 2018-05-31 00:13:02 +00:00
Nextcloud bot 00edb8f2d4
[tx-robot] updated from transifex 2018-05-29 00:12:43 +00:00
Nextcloud bot 5a20bb6980
[tx-robot] updated from transifex 2018-05-28 00:13:05 +00:00
Nextcloud bot 043acfebab
[tx-robot] updated from transifex 2018-05-26 00:13:24 +00:00
Nextcloud bot d8e3c3cb22
[tx-robot] updated from transifex 2018-05-25 00:15:16 +00:00
Nextcloud bot c101ad3a65
[tx-robot] updated from transifex 2018-05-18 00:14:09 +00:00
Nextcloud bot b08e53d365
[tx-robot] updated from transifex 2018-05-17 00:14:09 +00:00
Nextcloud bot 8029998a60
[tx-robot] updated from transifex 2018-04-27 00:12:15 +00:00