mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-20 22:05:57 +00:00
Fix JS error when saving/sending plain text msg
This commit is contained in:
@@ -188,7 +188,7 @@ function onPostComplete(http) {
|
||||
|
||||
function clickedEditorSend() {
|
||||
onValidate(function() {
|
||||
CKEDITOR.instances.text.updateElement();
|
||||
if (CKEDITOR.instances.text) CKEDITOR.instances.text.updateElement();
|
||||
triggerAjaxRequest(document.pageform.action,
|
||||
onPostComplete,
|
||||
null,
|
||||
@@ -234,7 +234,7 @@ function clickedEditorSave() {
|
||||
|
||||
window.shouldPreserve = true;
|
||||
document.pageform.action = "save";
|
||||
CKEDITOR.instances.text.updateElement();
|
||||
if (CKEDITOR.instances.text) CKEDITOR.instances.text.updateElement();
|
||||
|
||||
triggerAjaxRequest(document.pageform.action, function (http) {
|
||||
if (http.readyState == 4) {
|
||||
|
||||
Reference in New Issue
Block a user