33 lines
3.4 KiB
JavaScript
33 lines
3.4 KiB
JavaScript
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["dropzone"],{
|
|
|
|
/***/ "./assets/js/dropzone.js":
|
|
/*!*******************************!*\
|
|
!*** ./assets/js/dropzone.js ***!
|
|
\*******************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
document.addEventListener('DOMContentLoaded', function () {
|
|
var elt = document.getElementById('mydropzone');
|
|
maxFiles = elt.getAttribute("data-maxFiles");
|
|
if (maxFiles != 1) maxFiles = null;
|
|
var mydropzone = new Dropzone(elt, {
|
|
acceptedMimeTypes: $(elt).data("acceptedMimeTypes"),
|
|
maxFiles: maxFiles,
|
|
init: function init() {
|
|
dropzoneinit(this);
|
|
},
|
|
success: function success(file, response) {
|
|
dropzonesuccess(file, response);
|
|
}
|
|
});
|
|
window.mydropzone = mydropzone;
|
|
});
|
|
__webpack_require__(/*! dropzone/dist/dropzone.css */ "./node_modules/dropzone/dist/dropzone.css");
|
|
var _require = __webpack_require__(/*! dropzone */ "./node_modules/dropzone/dist/dropzone.mjs"),
|
|
Dropzone = _require.Dropzone;
|
|
|
|
/***/ })
|
|
|
|
},[["./assets/js/dropzone.js","runtime","vendors~dropzone"]]]);
|
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9hc3NldHMvanMvZHJvcHpvbmUuanMiXSwibmFtZXMiOlsiZG9jdW1lbnQiLCJhZGRFdmVudExpc3RlbmVyIiwiZWx0IiwiZ2V0RWxlbWVudEJ5SWQiLCJtYXhGaWxlcyIsImdldEF0dHJpYnV0ZSIsIm15ZHJvcHpvbmUiLCJEcm9wem9uZSIsImFjY2VwdGVkTWltZVR5cGVzIiwiJCIsImRhdGEiLCJpbml0IiwiZHJvcHpvbmVpbml0Iiwic3VjY2VzcyIsImZpbGUiLCJyZXNwb25zZSIsImRyb3B6b25l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