Fix for ETHREEOH-1844: Text field (areas) became non-editable if user use navigate-remove combination for repeatable elements on Create Web content based on web form screen

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@17059 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gavin Cornwell
2009-10-21 06:51:48 +00:00
parent af64d567f6
commit a118bd2e94

View File

@@ -3393,6 +3393,10 @@ alfresco.xforms.Repeat = alfresco.xforms.VGroup.extend({
var fromChild = this.getChildAt(fromIndex);
var toChild = this.getChildAt(toIndex);
this.xform.swapRepeatItems(fromChild, toChild);
// set tinymce current instance to null
alfresco.xforms.RichTextEditor.currentInstance = null;
var anim = dojo.lfx.html.fadeOut(fromChild.domContainer, 500);
anim.onEnd = function()
{
@@ -3636,6 +3640,9 @@ alfresco.xforms.Repeat = alfresco.xforms.VGroup.extend({
event.stopPropagation();
if (this.isInsertRepeatItemEnabled())
{
// set tinymce current instance to null
alfresco.xforms.RichTextEditor.currentInstance = null;
this.setFocusedChild(null);
var trigger = this._getRepeatItemTrigger("insert", { position: "before" });
trigger.fire();