Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Commit

Permalink
Bump 5.0.8
Browse files Browse the repository at this point in the history
Bump 5.0.9

Signed-off-by: Fery Wardiyanto <[email protected]>
  • Loading branch information
feryardiant committed Dec 22, 2014
1 parent cb0962e commit 52831d2
Show file tree
Hide file tree
Showing 17 changed files with 261 additions and 149 deletions.
42 changes: 29 additions & 13 deletions dist/all.fineuploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* Copyright 2013, Widen Enterprises, Inc. [email protected]
*
* Version: 5.0.7
* Version: 5.0.9
*
* Homepage: http://fineuploader.com
*
Expand Down Expand Up @@ -491,6 +491,10 @@ var qq = function(element) {
return navigator.userAgent.indexOf("MSIE 7") !== -1;
};

qq.ie8 = function() {
return navigator.userAgent.indexOf("MSIE 8") !== -1;
};

qq.ie10 = function() {
return navigator.userAgent.indexOf("MSIE 10") !== -1;
};
Expand Down Expand Up @@ -847,7 +851,7 @@ var qq = function(element) {
}());

/*global qq */
qq.version="5.0.7";
qq.version="5.0.9";

/* globals qq */
qq.supportedFeatures = (function () {
Expand Down Expand Up @@ -933,6 +937,16 @@ qq.supportedFeatures = (function () {
return document.createElement("input").webkitdirectory !== undefined;
}

function isLocalStorageSupported () {
try {
return !!window.localStorage;
}
catch (error) {
// probably caught a security exception, so no localStorage for you
return false;
}
}


supportsUploading = testSupportsFileInputElement();

Expand All @@ -944,7 +958,7 @@ qq.supportedFeatures = (function () {

supportsChunking = supportsAjaxFileUploading && qq.isFileChunkingSupported();

supportsResume = supportsAjaxFileUploading && supportsChunking && !!window.localStorage;
supportsResume = supportsAjaxFileUploading && supportsChunking && isLocalStorageSupported();

supportsUploadViaPaste = supportsAjaxFileUploading && isChrome14OrHigher();

Expand Down Expand Up @@ -1192,8 +1206,10 @@ qq.UploadButton = function(o) {
// space of the container element. Otherwise, the left side of the
// button will require a double-click to invoke the file chooser.
// In other browsers, this might cause other issues, so a large font-size
// is only used in IE.
fontSize: qq.ie() ? "3500px" : "118px",
// is only used in IE. There is a bug in IE8 where the opacity style is ignored
// in some cases when the font-size is large. So, this workaround is not applied
// to IE8.
fontSize: qq.ie() && !qq.ie8() ? "3500px" : "118px",
margin: 0,
padding: 0,
cursor: "pointer",
Expand Down Expand Up @@ -7791,7 +7807,7 @@ qq.PasteSupport = function(o) {
}

function registerPasteHandler() {
qq(options.targetElement).attach("paste", function(event) {
detachPasteHandler = qq(options.targetElement).attach("paste", function(event) {
var clipboardData = event.clipboardData;

if (clipboardData) {
Expand Down Expand Up @@ -8065,7 +8081,7 @@ qq.DragAndDrop = function(o) {
var uploadDropZone = setupDropzone(dropZone);

// IE <= 9 does not support the File API used for drag+drop uploads
if (dropZones.length && (!qq.ie() || qq.ie10())) {
if (dropZones.length && qq.supportedFeatures.fileDrop) {
disposeSupport.attach(document, "dragenter", function(e) {
if (!uploadDropZone.dropDisabled() && isFileDrag(e)) {
qq.each(dropZones, function(idx, dropZone) {
Expand Down Expand Up @@ -8190,7 +8206,7 @@ qq.UploadDropZone = function(o){
function isValidFileDrag(e){
// e.dataTransfer currently causing IE errors
// IE9 does NOT support file API, so drag-and-drop is not possible
if (qq.ie() && !qq.ie10()) {
if (!qq.supportedFeatures.fileDrop) {
return false;
}

Expand All @@ -8201,9 +8217,9 @@ qq.UploadDropZone = function(o){
// dt.effectAllowed is none in Safari 5
// dt.types.contains check is for firefox

// dt.effectAllowed crashes IE11 when files have been dragged from
// dt.effectAllowed crashes IE 11 & 10 when files have been dragged from
// the filesystem
effectTest = (qq.ie10() || qq.ie11()) ? true : dt.effectAllowed !== "none";
effectTest = qq.ie() && qq.supportedFeatures.fileDrop ? true : dt.effectAllowed !== "none";
return dt && effectTest && (dt.files || (!isSafari && dt.types.contains && dt.types.contains("Files")));
}

Expand Down Expand Up @@ -8243,9 +8259,9 @@ qq.UploadDropZone = function(o){
return;
}

// dt.effectAllowed crashes IE11 when files have been dragged from
// dt.effectAllowed crashes IE 11 & 10 when files have been dragged from
// the filesystem
var effect = (qq.ie() || qq.ie11()) ? null : e.dataTransfer.effectAllowed;
var effect = qq.ie() && qq.supportedFeatures.fileDrop ? null : e.dataTransfer.effectAllowed;
if (effect === "move" || effect === "linkMove"){
e.dataTransfer.dropEffect = "move"; // for FF (only move allowed)
} else {
Expand Down Expand Up @@ -15808,4 +15824,4 @@ code.google.com/p/crypto-js/wiki/License
C.HmacSHA1 = Hasher._createHmacHelper(SHA1);
}());

/*! 2014-10-04 */
/*! 2014-12-22 */
16 changes: 8 additions & 8 deletions dist/all.fineuploader.min.js

Large diffs are not rendered by default.

42 changes: 29 additions & 13 deletions dist/azure.fineuploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* Copyright 2013, Widen Enterprises, Inc. [email protected]
*
* Version: 5.0.7
* Version: 5.0.9
*
* Homepage: http://fineuploader.com
*
Expand Down Expand Up @@ -491,6 +491,10 @@ var qq = function(element) {
return navigator.userAgent.indexOf("MSIE 7") !== -1;
};

qq.ie8 = function() {
return navigator.userAgent.indexOf("MSIE 8") !== -1;
};

qq.ie10 = function() {
return navigator.userAgent.indexOf("MSIE 10") !== -1;
};
Expand Down Expand Up @@ -847,7 +851,7 @@ var qq = function(element) {
}());

/*global qq */
qq.version="5.0.7";
qq.version="5.0.9";

/* globals qq */
qq.supportedFeatures = (function () {
Expand Down Expand Up @@ -933,6 +937,16 @@ qq.supportedFeatures = (function () {
return document.createElement("input").webkitdirectory !== undefined;
}

function isLocalStorageSupported () {
try {
return !!window.localStorage;
}
catch (error) {
// probably caught a security exception, so no localStorage for you
return false;
}
}


supportsUploading = testSupportsFileInputElement();

Expand All @@ -944,7 +958,7 @@ qq.supportedFeatures = (function () {

supportsChunking = supportsAjaxFileUploading && qq.isFileChunkingSupported();

supportsResume = supportsAjaxFileUploading && supportsChunking && !!window.localStorage;
supportsResume = supportsAjaxFileUploading && supportsChunking && isLocalStorageSupported();

supportsUploadViaPaste = supportsAjaxFileUploading && isChrome14OrHigher();

Expand Down Expand Up @@ -1192,8 +1206,10 @@ qq.UploadButton = function(o) {
// space of the container element. Otherwise, the left side of the
// button will require a double-click to invoke the file chooser.
// In other browsers, this might cause other issues, so a large font-size
// is only used in IE.
fontSize: qq.ie() ? "3500px" : "118px",
// is only used in IE. There is a bug in IE8 where the opacity style is ignored
// in some cases when the font-size is large. So, this workaround is not applied
// to IE8.
fontSize: qq.ie() && !qq.ie8() ? "3500px" : "118px",
margin: 0,
padding: 0,
cursor: "pointer",
Expand Down Expand Up @@ -8518,7 +8534,7 @@ qq.PasteSupport = function(o) {
}

function registerPasteHandler() {
qq(options.targetElement).attach("paste", function(event) {
detachPasteHandler = qq(options.targetElement).attach("paste", function(event) {
var clipboardData = event.clipboardData;

if (clipboardData) {
Expand Down Expand Up @@ -8792,7 +8808,7 @@ qq.DragAndDrop = function(o) {
var uploadDropZone = setupDropzone(dropZone);

// IE <= 9 does not support the File API used for drag+drop uploads
if (dropZones.length && (!qq.ie() || qq.ie10())) {
if (dropZones.length && qq.supportedFeatures.fileDrop) {
disposeSupport.attach(document, "dragenter", function(e) {
if (!uploadDropZone.dropDisabled() && isFileDrag(e)) {
qq.each(dropZones, function(idx, dropZone) {
Expand Down Expand Up @@ -8917,7 +8933,7 @@ qq.UploadDropZone = function(o){
function isValidFileDrag(e){
// e.dataTransfer currently causing IE errors
// IE9 does NOT support file API, so drag-and-drop is not possible
if (qq.ie() && !qq.ie10()) {
if (!qq.supportedFeatures.fileDrop) {
return false;
}

Expand All @@ -8928,9 +8944,9 @@ qq.UploadDropZone = function(o){
// dt.effectAllowed is none in Safari 5
// dt.types.contains check is for firefox

// dt.effectAllowed crashes IE11 when files have been dragged from
// dt.effectAllowed crashes IE 11 & 10 when files have been dragged from
// the filesystem
effectTest = (qq.ie10() || qq.ie11()) ? true : dt.effectAllowed !== "none";
effectTest = qq.ie() && qq.supportedFeatures.fileDrop ? true : dt.effectAllowed !== "none";
return dt && effectTest && (dt.files || (!isSafari && dt.types.contains && dt.types.contains("Files")));
}

Expand Down Expand Up @@ -8970,9 +8986,9 @@ qq.UploadDropZone = function(o){
return;
}

// dt.effectAllowed crashes IE11 when files have been dragged from
// dt.effectAllowed crashes IE 11 & 10 when files have been dragged from
// the filesystem
var effect = (qq.ie() || qq.ie11()) ? null : e.dataTransfer.effectAllowed;
var effect = qq.ie() && qq.supportedFeatures.fileDrop ? null : e.dataTransfer.effectAllowed;
if (effect === "move" || effect === "linkMove"){
e.dataTransfer.dropEffect = "move"; // for FF (only move allowed)
} else {
Expand Down Expand Up @@ -11500,4 +11516,4 @@ qq.FilenameEditHandler = function(s, inheritedInternalApi) {
});
};

/*! 2014-10-04 */
/*! 2014-12-22 */
14 changes: 7 additions & 7 deletions dist/azure.fineuploader.min.js

Large diffs are not rendered by default.

42 changes: 29 additions & 13 deletions dist/azure.jquery.fineuploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* Copyright 2013, Widen Enterprises, Inc. [email protected]
*
* Version: 5.0.7
* Version: 5.0.9
*
* Homepage: http://fineuploader.com
*
Expand Down Expand Up @@ -491,6 +491,10 @@ var qq = function(element) {
return navigator.userAgent.indexOf("MSIE 7") !== -1;
};

qq.ie8 = function() {
return navigator.userAgent.indexOf("MSIE 8") !== -1;
};

qq.ie10 = function() {
return navigator.userAgent.indexOf("MSIE 10") !== -1;
};
Expand Down Expand Up @@ -847,7 +851,7 @@ var qq = function(element) {
}());

/*global qq */
qq.version="5.0.7";
qq.version="5.0.9";

/* globals qq */
qq.supportedFeatures = (function () {
Expand Down Expand Up @@ -933,6 +937,16 @@ qq.supportedFeatures = (function () {
return document.createElement("input").webkitdirectory !== undefined;
}

function isLocalStorageSupported () {
try {
return !!window.localStorage;
}
catch (error) {
// probably caught a security exception, so no localStorage for you
return false;
}
}


supportsUploading = testSupportsFileInputElement();

Expand All @@ -944,7 +958,7 @@ qq.supportedFeatures = (function () {

supportsChunking = supportsAjaxFileUploading && qq.isFileChunkingSupported();

supportsResume = supportsAjaxFileUploading && supportsChunking && !!window.localStorage;
supportsResume = supportsAjaxFileUploading && supportsChunking && isLocalStorageSupported();

supportsUploadViaPaste = supportsAjaxFileUploading && isChrome14OrHigher();

Expand Down Expand Up @@ -1192,8 +1206,10 @@ qq.UploadButton = function(o) {
// space of the container element. Otherwise, the left side of the
// button will require a double-click to invoke the file chooser.
// In other browsers, this might cause other issues, so a large font-size
// is only used in IE.
fontSize: qq.ie() ? "3500px" : "118px",
// is only used in IE. There is a bug in IE8 where the opacity style is ignored
// in some cases when the font-size is large. So, this workaround is not applied
// to IE8.
fontSize: qq.ie() && !qq.ie8() ? "3500px" : "118px",
margin: 0,
padding: 0,
cursor: "pointer",
Expand Down Expand Up @@ -8518,7 +8534,7 @@ qq.PasteSupport = function(o) {
}

function registerPasteHandler() {
qq(options.targetElement).attach("paste", function(event) {
detachPasteHandler = qq(options.targetElement).attach("paste", function(event) {
var clipboardData = event.clipboardData;

if (clipboardData) {
Expand Down Expand Up @@ -8792,7 +8808,7 @@ qq.DragAndDrop = function(o) {
var uploadDropZone = setupDropzone(dropZone);

// IE <= 9 does not support the File API used for drag+drop uploads
if (dropZones.length && (!qq.ie() || qq.ie10())) {
if (dropZones.length && qq.supportedFeatures.fileDrop) {
disposeSupport.attach(document, "dragenter", function(e) {
if (!uploadDropZone.dropDisabled() && isFileDrag(e)) {
qq.each(dropZones, function(idx, dropZone) {
Expand Down Expand Up @@ -8917,7 +8933,7 @@ qq.UploadDropZone = function(o){
function isValidFileDrag(e){
// e.dataTransfer currently causing IE errors
// IE9 does NOT support file API, so drag-and-drop is not possible
if (qq.ie() && !qq.ie10()) {
if (!qq.supportedFeatures.fileDrop) {
return false;
}

Expand All @@ -8928,9 +8944,9 @@ qq.UploadDropZone = function(o){
// dt.effectAllowed is none in Safari 5
// dt.types.contains check is for firefox

// dt.effectAllowed crashes IE11 when files have been dragged from
// dt.effectAllowed crashes IE 11 & 10 when files have been dragged from
// the filesystem
effectTest = (qq.ie10() || qq.ie11()) ? true : dt.effectAllowed !== "none";
effectTest = qq.ie() && qq.supportedFeatures.fileDrop ? true : dt.effectAllowed !== "none";
return dt && effectTest && (dt.files || (!isSafari && dt.types.contains && dt.types.contains("Files")));
}

Expand Down Expand Up @@ -8970,9 +8986,9 @@ qq.UploadDropZone = function(o){
return;
}

// dt.effectAllowed crashes IE11 when files have been dragged from
// dt.effectAllowed crashes IE 11 & 10 when files have been dragged from
// the filesystem
var effect = (qq.ie() || qq.ie11()) ? null : e.dataTransfer.effectAllowed;
var effect = qq.ie() && qq.supportedFeatures.fileDrop ? null : e.dataTransfer.effectAllowed;
if (effect === "move" || effect === "linkMove"){
e.dataTransfer.dropEffect = "move"; // for FF (only move allowed)
} else {
Expand Down Expand Up @@ -11901,4 +11917,4 @@ qq.FilenameEditHandler = function(s, inheritedInternalApi) {

}(jQuery));

/*! 2014-10-04 */
/*! 2014-12-22 */
14 changes: 7 additions & 7 deletions dist/azure.jquery.fineuploader.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/fineuploader.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* Copyright 2013, Widen Enterprises, Inc. [email protected]
*
* Version: 5.0.7
* Version: 5.0.9
*
* Homepage: http://fineuploader.com
*
Expand Down Expand Up @@ -208,4 +208,4 @@ INPUT.qq-edit-filename.qq-editing ~ .qq-upload-cancel {
display: none;
}

/*! 2014-10-04 */
/*! 2014-12-22 */
Loading

0 comments on commit 52831d2

Please sign in to comment.