Korrektur beim Upload neuer Bilder
This commit is contained in:
@@ -508,15 +508,16 @@ var editor = new Object({
|
|||||||
},
|
},
|
||||||
|
|
||||||
submitData: function () {
|
submitData: function () {
|
||||||
|
editor.waitingElement.show();
|
||||||
/**
|
/**
|
||||||
* Update der Textareas mit Daten aus der CKEditor Instanz
|
* Update der Textareas mit Daten aus der CKEditor Instanz
|
||||||
*/
|
*/
|
||||||
editor.waitingElement.show();
|
|
||||||
$('textarea.ckeditor').each(function () {
|
$('textarea.ckeditor').each(function () {
|
||||||
var textArea = $(this);
|
var textArea = $(this);
|
||||||
textArea.val(CKEDITOR.instances[textArea.attr('name')].getData());
|
textArea.val(CKEDITOR.instances[textArea.attr('name')].getData());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('.uploadFile').prop('disabled', true);
|
||||||
var formData = new FormData(editor.formElement[0]);
|
var formData = new FormData(editor.formElement[0]);
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
@@ -1179,8 +1180,8 @@ var imgEditor = new Object({
|
|||||||
}
|
}
|
||||||
imgEditor.uploadSource = fileEvent.target.result;
|
imgEditor.uploadSource = fileEvent.target.result;
|
||||||
|
|
||||||
if (imgEditor.imgThumbElement.is(':ui-resizable')) {
|
if (imgEditor.imagePreview.is(':ui-resizable')) {
|
||||||
imgEditor.imgThumbElement.resizable('destroy');
|
imgEditor.imagePreview.resizable('destroy');
|
||||||
}
|
}
|
||||||
|
|
||||||
imgEditor.enableEdit();
|
imgEditor.enableEdit();
|
||||||
|
|||||||
Reference in New Issue
Block a user