Changeset 4512
- Timestamp:
- 01/25/12 13:09:35 (4 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
plugins/apostropheHTML5Plugin/trunk/web/fileuploader/fileuploader.js
r4508 r4512 350 350 351 351 qq.attach(window, 'beforeunload', function(e){ 352 if (!self._filesInProgress){return;} 352 // Should never be <0 but I see it happening. tom@punkave.com 353 if (self._filesInProgress <= 0){return;} 353 354 354 355 var e = e || window.event; … … 366 367 _onComplete: function(id, fileName, result){ 367 368 this._filesInProgress--; 368 if (result.error){ 369 if (result.error) { 370 if (result.stopQueue){ 371 this._handler.cancelAll(); 372 } 369 373 this._options.showMessage(result.error); 370 374 } … … 922 926 this._cancel(this._queue[i]); 923 927 } 928 // This shouldn't be necessary but we've seen 929 // the "uploads still in progress" warning 930 // even after cancelAll. tom@punkave.com 931 this._filesInProgress = 0; 932 924 933 this._queue = []; 925 934 },

