forked from projects/fipamo
hotfix for images in editor uploads
This commit is contained in:
parent
9baaed6d50
commit
aa3301fb66
4 changed files with 8689 additions and 165 deletions
|
@ -4,6 +4,7 @@ namespace brain\api\v1;
|
||||||
|
|
||||||
use brain\data\Member;
|
use brain\data\Member;
|
||||||
use brain\data\Settings;
|
use brain\data\Settings;
|
||||||
|
use brain\utility\FileUploader;
|
||||||
|
|
||||||
class ImagesAPI
|
class ImagesAPI
|
||||||
{
|
{
|
||||||
|
|
|
@ -177,5 +177,5 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block javascripts %}
|
{% 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 %}
|
{% endblock %}
|
File diff suppressed because one or more lines are too long
|
@ -19,7 +19,7 @@ export default class PostEditor {
|
||||||
//--------------------------
|
//--------------------------
|
||||||
constructor() {
|
constructor() {
|
||||||
this.processing = false;
|
this.processing = false;
|
||||||
let self = "this";
|
let self = 'this';
|
||||||
this.admin = new FipamoAdminAPI(null, document.getElementById('notify-progress'));
|
this.admin = new FipamoAdminAPI(null, document.getElementById('notify-progress'));
|
||||||
this.mm = new Maintenance(null, null, document.getElementById('notify-progress'));
|
this.mm = new Maintenance(null, null, document.getElementById('notify-progress'));
|
||||||
this.urlPieces = document.URL.split('/');
|
this.urlPieces = document.URL.split('/');
|
||||||
|
@ -69,7 +69,7 @@ export default class PostEditor {
|
||||||
document.getElementById('post-image-upload').addEventListener(
|
document.getElementById('post-image-upload').addEventListener(
|
||||||
'change',
|
'change',
|
||||||
e => {
|
e => {
|
||||||
self.handleImageUpload(e.target.id, e.target.files);
|
this.handleImageUpload(e.target.id, e.target.files);
|
||||||
},
|
},
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue