mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-10 23:40:39 +01:00
Fix broken file widget's accept option caused by Resumable overriding it on initiation
This commit is contained in:
parent
29dac6f76d
commit
b303f16d61
@ -114,8 +114,6 @@ var et2_file = /** @class */ (function (_super) {
|
|||||||
jQuery(span).removeClass('et2_file_spanActive');
|
jQuery(span).removeClass('et2_file_spanActive');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (this.options.accept)
|
|
||||||
this.input.attr('accept', this.options.accept);
|
|
||||||
var self = this;
|
var self = this;
|
||||||
// trigger native input upload file
|
// trigger native input upload file
|
||||||
if (!this.options.readonly)
|
if (!this.options.readonly)
|
||||||
@ -132,6 +130,8 @@ var et2_file = /** @class */ (function (_super) {
|
|||||||
else {
|
else {
|
||||||
// This may be a problem submitting via ajax
|
// This may be a problem submitting via ajax
|
||||||
}
|
}
|
||||||
|
if (this.options.accept)
|
||||||
|
this.input.attr('accept', this.options.accept);
|
||||||
if (this.options.progress) {
|
if (this.options.progress) {
|
||||||
var widget = this.getRoot().getWidgetById(this.options.progress);
|
var widget = this.getRoot().getWidgetById(this.options.progress);
|
||||||
if (widget) {
|
if (widget) {
|
||||||
|
@ -198,7 +198,6 @@ export class et2_file extends et2_inputWidget
|
|||||||
jQuery(span).removeClass('et2_file_spanActive');
|
jQuery(span).removeClass('et2_file_spanActive');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (this.options.accept) this.input.attr('accept', this.options.accept);
|
|
||||||
let self = this;
|
let self = this;
|
||||||
// trigger native input upload file
|
// trigger native input upload file
|
||||||
if (!this.options.readonly) this.span.click(function(){self.input.click()});
|
if (!this.options.readonly) this.span.click(function(){self.input.click()});
|
||||||
@ -216,6 +215,8 @@ export class et2_file extends et2_inputWidget
|
|||||||
{
|
{
|
||||||
// This may be a problem submitting via ajax
|
// This may be a problem submitting via ajax
|
||||||
}
|
}
|
||||||
|
if (this.options.accept) this.input.attr('accept', this.options.accept);
|
||||||
|
|
||||||
if(this.options.progress)
|
if(this.options.progress)
|
||||||
{
|
{
|
||||||
let widget = this.getRoot().getWidgetById(this.options.progress);
|
let widget = this.getRoot().getWidgetById(this.options.progress);
|
||||||
|
Loading…
Reference in New Issue
Block a user