Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-26 02:50:28 +01:00
FIX: confine the wizard composer's dropZone
Dieser Commit ist enthalten in:
Ursprung
097af63090
Commit
f096f7d05f
1 geänderte Dateien mit 7 neuen und 1 gelöschten Zeilen
|
@ -88,7 +88,13 @@ export default ComposerEditor.extend({
|
||||||
_bindUploadTarget() {
|
_bindUploadTarget() {
|
||||||
this._super(...arguments);
|
this._super(...arguments);
|
||||||
const $element = $(this.element);
|
const $element = $(this.element);
|
||||||
|
// adding dropZone property post initialization
|
||||||
|
$element.fileupload(
|
||||||
|
'option',
|
||||||
|
'dropZone',
|
||||||
|
$element
|
||||||
|
);
|
||||||
|
|
||||||
$element.off("fileuploadsubmit");
|
$element.off("fileuploadsubmit");
|
||||||
|
|
||||||
$element.on("fileuploadsubmit", (e, data) => {
|
$element.on("fileuploadsubmit", (e, data) => {
|
||||||
|
|
Laden …
In neuem Issue referenzieren