aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/filelist.js
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2022-01-10 14:06:28 +0100
committerLouis Chemineau <louis@chmn.me>2022-01-11 17:12:55 +0100
commitd92cbf51493f0aa15745d2f9545cba2372eecec3 (patch)
tree349a555a74c99b40c20fcc470c26b7f7c0029f8d /apps/files/js/filelist.js
parent7484abb6c07f2296abc2040ecd747ddf1d65e98e (diff)
downloadnextcloud-server-d92cbf51493f0aa15745d2f9545cba2372eecec3.tar.gz
nextcloud-server-d92cbf51493f0aa15745d2f9545cba2372eecec3.zip
Typing corrections
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps/files/js/filelist.js')
-rw-r--r--apps/files/js/filelist.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 6fe9895c60e..fec058effd3 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -102,7 +102,7 @@
* Number of files per page
* Always show a minimum of 1
*
- * @return {int} page size
+ * @return {number} page size
*/
pageSize: function() {
var isGridView = this.$showGridView.is(':checked');
@@ -803,7 +803,7 @@
* the internal selection cache.
*
* @param {Object} $tr single file row element
- * @param {bool} state true to select, false to deselect
+ * @param {boolean} state true to select, false to deselect
*/
_selectFileEl: function($tr, state) {
var $checkbox = $tr.find('td.selection>.selectCheckBox');
@@ -1958,7 +1958,7 @@
*
* @param {OC.Files.FileInfo} fileData map of file attributes
* @param {Object} [options] map of attributes
- * @param {int} [options.index] index at which to insert the element
+ * @param {number} [options.index] index at which to insert the element
* @param {boolean} [options.updateSummary] true to update the summary
* after adding (default), false otherwise. Defaults to true.
* @param {boolean} [options.animate] true to animate the thumbnail image after load
@@ -2234,7 +2234,7 @@
if (status === 401) {
// We are not authentificated, so reload the page so that we get
// redirected to the login page while saving the current url.
- location.reload();
+ location.reload();
}
// Firewall Blocked request?
@@ -2348,8 +2348,8 @@
/**
* Generates a preview URL based on the URL space.
* @param urlSpec attributes for the URL
- * @param {int} urlSpec.x width
- * @param {int} urlSpec.y height
+ * @param {number} urlSpec.x width
+ * @param {number} urlSpec.y height
* @param {String} urlSpec.file path to the file
* @return preview URL
*/
@@ -3166,7 +3166,7 @@
*
* @param {string} file file name
*
- * @return {bool} true if the file exists in the list, false otherwise
+ * @return {boolean} true if the file exists in the list, false otherwise
*/
inList:function(file) {
return this.findFile(file);
@@ -3176,7 +3176,7 @@
* Shows busy state on a given file row or multiple
*
* @param {string|Array.<string>} files file name or array of file names
- * @param {bool} [busy=true] busy state, true for busy, false to remove busy state
+ * @param {boolean} [busy=true] busy state, true for busy, false to remove busy state
*
* @since 8.2
*/
@@ -3952,7 +3952,7 @@
*
* @param {OC.Files.FileInfo} fileInfo1 file info
* @param {OC.Files.FileInfo} fileInfo2 file info
- * @return {int} -1 if the first file must appear before the second one,
+ * @return {number} -1 if the first file must appear before the second one,
* 0 if they are identify, 1 otherwise.
*/
name: function(fileInfo1, fileInfo2) {
@@ -3969,7 +3969,7 @@
*
* @param {OC.Files.FileInfo} fileInfo1 file info
* @param {OC.Files.FileInfo} fileInfo2 file info
- * @return {int} -1 if the first file must appear before the second one,
+ * @return {number} -1 if the first file must appear before the second one,
* 0 if they are identify, 1 otherwise.
*/
size: function(fileInfo1, fileInfo2) {
@@ -3980,7 +3980,7 @@
*
* @param {OC.Files.FileInfo} fileInfo1 file info
* @param {OC.Files.FileInfo} fileInfo2 file info
- * @return {int} -1 if the first file must appear before the second one,
+ * @return {number} -1 if the first file must appear before the second one,
* 0 if they are identify, 1 otherwise.
*/
mtime: function(fileInfo1, fileInfo2) {