|
@@ -186,7 +186,7 @@ let vueImage = new Vue({
|
|
vueImage.isLoadingText = 'Moving image...';
|
|
vueImage.isLoadingText = 'Moving image...';
|
|
vueImage.isLoading = true;
|
|
vueImage.isLoading = true;
|
|
Vue.nextTick(() => {
|
|
Vue.nextTick(() => {
|
|
- socket.emit('uploadsMoveFile', { uid: uid, folder: fld }, (data) => {
|
|
|
|
|
|
+ socket.emit('uploadsMoveFile', { uid, folder: fld }, (data) => {
|
|
if(data.ok) {
|
|
if(data.ok) {
|
|
vueImage.loadImages();
|
|
vueImage.loadImages();
|
|
} else {
|
|
} else {
|
|
@@ -311,7 +311,7 @@ let vueImage = new Vue({
|
|
position: (opt, x, y) => {
|
|
position: (opt, x, y) => {
|
|
$(opt.$trigger).addClass('is-contextopen');
|
|
$(opt.$trigger).addClass('is-contextopen');
|
|
let trigPos = $(opt.$trigger).position();
|
|
let trigPos = $(opt.$trigger).position();
|
|
- let trigDim = { w: $(opt.$trigger).width() / 2, h: $(opt.$trigger).height() / 2 }
|
|
|
|
|
|
+ let trigDim = { w: $(opt.$trigger).width() / 2, h: $(opt.$trigger).height() / 2 };
|
|
opt.$menu.css({ top: trigPos.top + trigDim.h, left: trigPos.left + trigDim.w });
|
|
opt.$menu.css({ top: trigPos.top + trigDim.h, left: trigPos.left + trigDim.w });
|
|
},
|
|
},
|
|
events: {
|
|
events: {
|
|
@@ -370,7 +370,7 @@ $('#btn-editor-uploadimage input').on('change', (ev) => {
|
|
vueImage.isLoading = true;
|
|
vueImage.isLoading = true;
|
|
},
|
|
},
|
|
|
|
|
|
- progress: function(progress) {
|
|
|
|
|
|
+ progress: (progress) => {
|
|
vueImage.isLoadingText = 'Uploading...' + Math.round(progress) + '%';
|
|
vueImage.isLoadingText = 'Uploading...' + Math.round(progress) + '%';
|
|
},
|
|
},
|
|
|
|
|
|
@@ -398,7 +398,7 @@ $('#btn-editor-uploadimage input').on('change', (ev) => {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
- error: function(error) {
|
|
|
|
|
|
+ error: (error) => {
|
|
alerts.pushError(error.message, this.upload.file.name);
|
|
alerts.pushError(error.message, this.upload.file.name);
|
|
},
|
|
},
|
|
|
|
|