nextcloud-server/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
appinfo
composer
css Fix uploading text position 2021-12-28 15:18:03 +01:00
img
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
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