hotfix for images in editor uploads

pull/84/head
Are0h 3 years ago
parent 9baaed6d50
commit aa3301fb66

@ -4,6 +4,7 @@ namespace brain\api\v1;
use brain\data\Member;
use brain\data\Settings;
use brain\utility\FileUploader;
class ImagesAPI
{

@ -177,5 +177,5 @@
{% endblock %}
{% block javascripts %}
<script src="/assets/scripts/Start.js?=erty" type="text/javascript"></script>
<script src="/assets/scripts/Start.js?=dfdfvd" type="text/javascript"></script>
{% endblock %}

File diff suppressed because one or more lines are too long

@ -19,7 +19,7 @@ export default class PostEditor {
//--------------------------
constructor() {
this.processing = false;
let self = "this";
let self = 'this';
this.admin = new FipamoAdminAPI(null, document.getElementById('notify-progress'));
this.mm = new Maintenance(null, null, document.getElementById('notify-progress'));
this.urlPieces = document.URL.split('/');
@ -69,7 +69,7 @@ export default class PostEditor {
document.getElementById('post-image-upload').addEventListener(
'change',
e => {
self.handleImageUpload(e.target.id, e.target.files);
this.handleImageUpload(e.target.id, e.target.files);
},
false
);

Loading…
Cancel
Save