diff options
author | Vincent Petry <pvince81@owncloud.com> | 2013-10-14 17:47:38 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2013-10-14 17:47:38 +0200 |
commit | fab4102c51e92c5e33725c69ec984b8912a9aee1 (patch) | |
tree | 617f462d26ad89cda16448ede5fed22d453cc870 /apps/files/js/files.js | |
parent | 09b084dfedfc0e07acdf64a11d9350b70dfc15b1 (diff) | |
download | nextcloud-server-fab4102c51e92c5e33725c69ec984b8912a9aee1.tar.gz nextcloud-server-fab4102c51e92c5e33725c69ec984b8912a9aee1.zip |
Disabled ajax mode for public files view
Ajax loading is not supported yet for public files view.
This fix disabled the history API, ajax loading and ajax directory
switch in public mode until it is implemented properly.
Diffstat (limited to 'apps/files/js/files.js')
-rw-r--r-- | apps/files/js/files.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 9e7a2364b18..a35ed4add8c 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -705,7 +705,9 @@ function checkTrashStatus() { function onClickBreadcrumb(e){ var $el = $(e.target).closest('.crumb'), $targetDir = $el.data('dir'); - if ($targetDir !== undefined){ + isPublic = !!$('#isPublic').val(); + + if ($targetDir !== undefined && !isPublic){ e.preventDefault(); FileList.changeDirectory(decodeURIComponent($targetDir)); } |