Commit 15189e6f authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

рефакторинг

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@58543 954022d7-b5bf-4e40-9824-e11837661b57
parent ea0b37fc
......@@ -2123,29 +2123,34 @@ var gUndoInsDelCellsFlag = true;
searchRangeInTableParts: function(range)
{
var aWs = this._getCurrentWS();
var tableRange;
var isIntersect = false;
var containRange;
if(aWs.TableParts)
{
for(var i = 0; i < aWs.TableParts.length; i++)
var containRange, tableRange;
var tableParts = aWs.TableParts;
if(tableParts)
{
if(aWs.TableParts[i].Ref)
for(var i = 0; i < tableParts.length; i++)
{
tableRange = aWs.TableParts[i].Ref;
}
if(!tableParts[i].Ref)
continue;
tableRange = tableParts[i].Ref;
if(range.isIntersect(tableRange))
{
if(tableRange.containsRange(range))
{
containRange = {tableRange: tableRange, id: i};
containRange = {id: i};
break;
}
else if(range.isIntersect(tableRange))
else
{
isIntersect = true;
break;
}
}
}
}
......
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