Commit 1815122d authored by Oleg Korshul's avatar Oleg Korshul

fileds plugin method bug

parent 8e72e016
......@@ -528,16 +528,46 @@
return;
}
else
else if (_current["Props"])
{
// change properties
var _blockStd = LogicDocument.GetContentControl(_content_control_pr.InternalId);
var _blockStd = LogicDocument.GetContentControl(_current["Props"]["InternalId"]);
_content_control_pr = new AscCommonWord.CContentControlPr();
_content_control_pr.Id = _current["Props"]["Id"];
_content_control_pr.Tag = _current["Props"]["Tag"];
_content_control_pr.Lock = _current["Props"]["Lock"];
_content_control_pr.InternalId = _current["Props"]["InternalId"];
_blockStd.SetContentControlPr(_content_control_pr);
_obj = _blockStd.GetContentControlPr();
this.returnDocuments.push({"Tag" : _obj.Tag, "Id" : _obj.Id, "Lock" : _obj.Lock, "InternalId" : _obj.InternalId});
}
}
else
{
if (false === LogicDocument.Document_Is_SelectionLocked(AscCommon.changestype_ContentControl_Properties))
{
var _current = this.documents[this.current];
if (_current["Props"] && _current["Url"] === undefined && _current["Script"] === undefined)
{
// change properties
var _blockStd = LogicDocument.GetContentControl(_current["Props"]["InternalId"]);
_content_control_pr = new AscCommonWord.CContentControlPr();
_content_control_pr.Id = _current["Props"]["Id"];
_content_control_pr.Tag = _current["Props"]["Tag"];
_content_control_pr.Lock = _current["Props"]["Lock"];
_content_control_pr.InternalId = _current["Props"]["InternalId"];
_blockStd.SetContentControlPr(_content_control_pr);
_obj = _blockStd.GetContentControlPr();
this.returnDocuments.push({"Tag" : _obj.Tag, "Id" : _obj.Id, "Lock" : _obj.Lock, "InternalId" : _obj.InternalId});
}
}
}
++this.current;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment