Commit 14481e06 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

селект нужного слайда при перетаскивании

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@52811 954022d7-b5bf-4e40-9824-e11837661b57
parent 63511e7a
...@@ -5952,6 +5952,9 @@ CPresentation.prototype = ...@@ -5952,6 +5952,9 @@ CPresentation.prototype =
break; break;
} }
var _selectedPage = this.CurPage;
var _newSelectedPage = 0;
deleted.reverse(); deleted.reverse();
for(var i = 0; i < deleted.length; ++i) for(var i = 0; i < deleted.length; ++i)
{ {
...@@ -5959,13 +5962,16 @@ CPresentation.prototype = ...@@ -5959,13 +5962,16 @@ CPresentation.prototype =
} }
for(i = 0; i < this.Slides.length; ++i) for(i = 0; i < this.Slides.length; ++i)
{ {
if (this.Slides[i].num == _selectedPage)
_newSelectedPage = i;
this.Slides[i].changeNum(i); this.Slides[i].changeNum(i);
} }
this.Document_UpdateUndoRedoState(); this.Document_UpdateUndoRedoState();
this.DrawingDocument.OnEndRecalculate(); this.DrawingDocument.OnEndRecalculate();
this.DrawingDocument.UpdateThumbnailsAttack(); this.DrawingDocument.UpdateThumbnailsAttack();
this.DrawingDocument.m_oWordControl.GoToPage(1); this.DrawingDocument.m_oWordControl.GoToPage(_newSelectedPage);
}, },
deleteSlides: function(array) deleteSlides: function(array)
......
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