use et2_obj.submit to toggle Editor; CKEditor prefs are lost then

This commit is contained in:
Klaus Leithoff 2013-10-04 11:17:45 +00:00
parent 4629785782
commit 4c6a249d40
2 changed files with 11 additions and 3 deletions

View File

@ -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();

View File

@ -58,7 +58,7 @@
</menulist>
<description value="Editor type"/>
<menulist>
<menupopup id="mimeType" onchange="1"/>
<menupopup id="mimeType" onchange="app.mail.submitOnChange"/>
</menulist>
</groupbox>
<groupbox class="et2_file mailUploadSection">