Pale Moon support
This commit is contained in:
parent
1491851eab
commit
3026299087
@ -5441,9 +5441,19 @@
|
||||
return QR.nodes.fileInput.click();
|
||||
},
|
||||
fileInput: function(files) {
|
||||
var file, length, max, post, _i, _len;
|
||||
var check, err, file, length, max, post, _i, _len;
|
||||
|
||||
if (files instanceof Event) {
|
||||
try {
|
||||
if (files instanceof Event) {
|
||||
check = true;
|
||||
}
|
||||
} catch (_error) {
|
||||
err = _error;
|
||||
if (this instanceof Element) {
|
||||
check = true;
|
||||
}
|
||||
}
|
||||
if (check) {
|
||||
files = __slice.call(this.files);
|
||||
QR.nodes.fileInput.value = null;
|
||||
}
|
||||
|
||||
@ -5451,9 +5451,19 @@
|
||||
return QR.nodes.fileInput.click();
|
||||
},
|
||||
fileInput: function(files) {
|
||||
var file, length, max, post, _i, _len;
|
||||
var check, err, file, length, max, post, _i, _len;
|
||||
|
||||
if (files instanceof Event) {
|
||||
try {
|
||||
if (files instanceof Event) {
|
||||
check = true;
|
||||
}
|
||||
} catch (_error) {
|
||||
err = _error;
|
||||
if (this instanceof Element) {
|
||||
check = true;
|
||||
}
|
||||
}
|
||||
if (check) {
|
||||
files = __slice.call(this.files);
|
||||
QR.nodes.fileInput.value = null;
|
||||
}
|
||||
|
||||
@ -443,7 +443,13 @@ QR =
|
||||
QR.nodes.fileInput.click()
|
||||
|
||||
fileInput: (files) ->
|
||||
if files instanceof Event # file input
|
||||
try
|
||||
if files instanceof Event # file input
|
||||
check = true
|
||||
catch err
|
||||
if @ instanceof Element # file input
|
||||
check = true
|
||||
if check
|
||||
files = [@files...]
|
||||
QR.nodes.fileInput.value = null # Don't hold the files from being modified on windows
|
||||
{length} = files
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user