diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f9c838c5..d3d9e1330 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines. * Typeahead support for owner email when adding a new server. * Scheduled command to clear out task log every month (configurable timespan). * Support for allocating a FQDN as an allocation (panel will convert to IP and assign the FQDN as the alias automatically). +* Refresh files button in file manager to reload file listing without full page refresh. ### Changed * Creating a user, server, or node now returns `HTTP/1.1 200` and a JSON element with the user/server/node's ID. diff --git a/resources/views/server/files/list.blade.php b/resources/views/server/files/list.blade.php index 544d42a62..f915e0ce5 100644 --- a/resources/views/server/files/list.blade.php +++ b/resources/views/server/files/list.blade.php @@ -20,7 +20,7 @@ - + diff --git a/resources/views/server/js/filemanager/index.blade.php b/resources/views/server/js/filemanager/index.blade.php index 2a84b64ba..a89b4114f 100644 --- a/resources/views/server/js/filemanager/index.blade.php +++ b/resources/views/server/js/filemanager/index.blade.php @@ -43,6 +43,7 @@ class FileManager { this.loader(false); $('#load_files').slideUp().html(data).slideDown(100, () => { ContextMenu.run(); + this.reloadFilesButton(); if (_.isFunction(next)) { return next(); } @@ -59,7 +60,7 @@ class FileManager { text: 'An error occured while attempting to process this request. Please try again.', }); console.log(jqXHR); - }) + }); } loader(show) { @@ -83,6 +84,13 @@ class FileManager { } } + reloadFilesButton() { + $('i[data-action="reload-files"]').unbind().on('click', () => { + $('i[data-action="reload-files"]').addClass('fa-spin'); + this.list(); + }); + } + decodeHash() { return decodeURIComponent(window.location.hash.substring(1)); }
File Name Size Last Modified