Skip to content
Permalink
Browse files

modules block: fixes #2104

git-svn-id: http://svn.contrexxlabs.com/contrexx/branches/contrexx_4_0@34246 5ce06e5d-2b28-0410-aa6a-b3cd9cf52d8a
  • Loading branch information...
MichaelRitter committed Dec 23, 2014
1 parent 623522c commit 9678f8a1a511040a7542b854df90c5a5e11ecd5f
Showing with 5 additions and 4 deletions.
  1. +5 −4 modules/block/template/module_block_modify.html
@@ -117,20 +117,21 @@
}
)
}
var firstRun = true;
function updateContent(newActiveLangId, invertChecked) {
oldActiveLangId = $J('ul.blockLang a.active').attr('id').split('_')[2];
wysiwygStatus = invertChecked ? !$J('#wysiwyg_editor').prop('checked') : $J('#wysiwyg_editor').prop('checked');
if (!CKEDITOR.instances.ckeditor) {
return;
}
if (wysiwygStatus) {
$J('#blockFormText_'+oldActiveLangId).val(CKEDITOR.instances.ckeditor.getData());
if (newActiveLangId > 0) {
CKEDITOR.instances.ckeditor.setData($J('#blockFormText_'+newActiveLangId).val());
}
} else {
$J('#blockFormText_'+oldActiveLangId).val($J('#ckeditor').val());
if (!firstRun) {
$J('#blockFormText_'+oldActiveLangId).val($J('#ckeditor').val());
}
firstRun = false;
if (newActiveLangId > 0) {
$J('#ckeditor').val($J('#blockFormText_'+newActiveLangId).val());
}

0 comments on commit 9678f8a

Please sign in to comment.
You can’t perform that action at this time.