diff options
Diffstat (limited to 'apps/files/js/app.js')
-rw-r--r-- | apps/files/js/app.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/files/js/app.js b/apps/files/js/app.js index 883642b9c1c..c2cef563fa0 100644 --- a/apps/files/js/app.js +++ b/apps/files/js/app.js @@ -53,6 +53,8 @@ this.$showHiddenFiles = $('input#showhiddenfilesToggle'); var showHidden = $('#showHiddenFiles').val() === "1"; this.$showHiddenFiles.prop('checked', showHidden); + + if ($('#fileNotFound').val() === "1") { OC.Notification.show(t('files', 'File could not be found'), {type: 'error'}); } @@ -221,7 +223,7 @@ }, /** - * Persist show hidden preference on ther server + * Persist show hidden preference on the server * * @returns {undefined} */ @@ -239,8 +241,8 @@ var params; if (e && e.itemId) { params = { - view: e.itemId, - dir: '/' + view: typeof e.view === 'string' && e.view !== '' ? e.view : e.itemId, + dir: e.dir ? e.dir : '/' }; this._changeUrl(params.view, params.dir); OC.Apps.hideAppSidebar($('.detailsView')); |