nextcloud/apps/files
Vincent Petry 809e305444
Trigger "changeDirectory" even on URL change
When using the browser back button or clicking on sections on the left
sidebar (like favorites), the "changeDirectory" jQuery event did not get
called, so apps like recommendations would not notice the directory
change.

This fixes the issue by also setting changeUrl to true when the file
list's directory got changed as a result from a URL change.

Added optional changedThroughUrl argument to make sure the event
recipient knows if the change was done through a URL change and make it
possible prevent a loop in the onDirectoryChange handler that actually
changes the URL when the origin was already from a URL change.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-01-11 17:48:03 +01:00
..
ajax Update php licenses 2021-06-04 22:02:41 +02:00
appinfo Master is now 24 2021-11-11 10:11:09 +01:00
composer Update to composer 2.1.11 2021-11-04 12:30:11 +01:00
css Fix uploading text position 2021-12-28 15:18:03 +01:00
img compress some images with tinypng.com 2020-05-22 13:07:11 +00:00
js Trigger "changeDirectory" even on URL change 2022-01-11 17:48:03 +01:00
l10n Removed obselete language files - Pt. II 2022-01-10 14:07:14 +01:00
lib Split common vendor chunk 2022-01-08 10:14:50 +01:00
src Fix JS tests after test lib updates 2022-01-10 15:08:03 +01:00
templates Move bundles to /dist 2022-01-08 10:11:58 +01:00
tests fix tests 2021-12-02 17:43:16 +01:00
.l10nignore Ignored compiled js files in files 2019-11-01 08:29:41 +01:00
list.php list.php files are only invoked via ViewController and APIController 2021-12-01 21:09:11 +01:00
recentlist.php list.php files are only invoked via ViewController and APIController 2021-12-01 21:09:11 +01:00
simplelist.php Remove isIE and associated legacy scripts 2021-11-30 13:03:08 +01:00