From 4c6a249d4054c8f0632cf61e23af3a1160196d15 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Fri, 4 Oct 2013 11:17:45 +0000 Subject: [PATCH] use et2_obj.submit to toggle Editor; CKEditor prefs are lost then --- mail/js/app.js | 12 ++++++++++-- mail/templates/default/compose.xet | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/mail/js/app.js b/mail/js/app.js index 98e1b60b7f..e2cb40e0e9 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -1246,7 +1246,7 @@ app.mail = AppJS.extend( }, vfsUploadForImport: function(_egw, _widget, _window) { - console.log(_egw, _widget, _window); + //console.log(_egw, _widget, _window); if (!jQuery.isEmptyObject(_widget.getValue())) { this.et2_obj.submit(); @@ -1255,7 +1255,15 @@ app.mail = AppJS.extend( vfsUploadForCompose: function(_egw, _widget, _window) { - console.log(_egw, _widget, _window); + //console.log(_egw, _widget, _window); + if (!jQuery.isEmptyObject(_widget.getValue())) + { + this.et2_obj.submit(); + } + }, + + submitOnChange: function(_egw, _widget, _window) { + //console.log(_egw, _widget, _window); if (!jQuery.isEmptyObject(_widget.getValue())) { this.et2_obj.submit(); diff --git a/mail/templates/default/compose.xet b/mail/templates/default/compose.xet index f0bfe5aeac..bf94922646 100644 --- a/mail/templates/default/compose.xet +++ b/mail/templates/default/compose.xet @@ -58,7 +58,7 @@ - +