Skip to content

Commit c51809f

Browse files
committed
Added isUploadInProgress() method to FileQueue.
1 parent bb1da8c commit c51809f

File tree

3 files changed

+19
-9
lines changed

3 files changed

+19
-9
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ This is the heart of the plugin, an object that manages the queue. All of the ba
164164
* **removeFile(FileUpload)** Removes the specified FileUpload from the queue.
165165
* **emptyQueue()** Removes all files from the queue.
166166
* **beginUpload()** Begins the queue file uploading process.
167+
* **isUploadInProgress()** Checks if the queue is currently uploading files. Returns a boolean.
167168

168169
### FileUpload Object
169170
This is the object you will have to interact with the most. The `queueAdd` and `queueRemove` callbacks both receive a FileUpload object as an argument, and the `handleUnacceptedFiles` and `processFileList` callbacks both receive an array of FileUpload objects as an argument.

jquery.xhruploadqueue.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,15 @@
312312
}
313313
};
314314

315+
/**
316+
* Checks if the queue is currently uploading files.
317+
* @public
318+
* @return {Boolean}
319+
*/
320+
me.isUploadInProgress = function() {
321+
return uploadsInProgress > 0;
322+
};
323+
315324
// private methods
316325

317326
/**

jquery.xhruploadqueue.min.js

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)