Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
0508e317
Commit
0508e317
authored
Feb 01, 2017
by
Ilya Kirillov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug #33841
parent
d49b06c7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
8 deletions
+43
-8
common/editorscommon.js
common/editorscommon.js
+31
-4
word/Editor/Document.js
word/Editor/Document.js
+1
-1
word/Private/TrackRevisions.js
word/Private/TrackRevisions.js
+4
-0
word/api.js
word/api.js
+7
-3
No files found.
common/editorscommon.js
View file @
0508e317
...
@@ -1975,12 +1975,39 @@ CLock.prototype.Set_Type = function(NewType, Redraw)
...
@@ -1975,12 +1975,39 @@ CLock.prototype.Set_Type = function(NewType, Redraw)
this
.
Type
=
NewType
;
this
.
Type
=
NewType
;
if
(
false
!=
Redraw
)
var
oApi
=
editor
;
var
oLogicDocument
=
oApi
.
WordControl
.
m_oLogicDocument
;
if
(
false
!=
Redraw
&&
oLogicDocument
)
{
{
// TODO: переделать перерисовку тут
// TODO: переделать перерисовку тут
var
DrawingDocument
=
editor
.
WordControl
.
m_oLogicDocument
.
DrawingDocument
;
var
oDrawingDocument
=
oLogicDocument
.
DrawingDocument
;
DrawingDocument
.
ClearCachePages
();
oDrawingDocument
.
ClearCachePages
();
DrawingDocument
.
FirePaint
();
oDrawingDocument
.
FirePaint
();
// TODO: Обновлять интерфейс нужно, потому что мы можем стоять изначально в незалоченном объекте, а тут он
// может быть залочен.
var
oRevisionsStack
=
oApi
.
asc_GetRevisionsChangesStack
();
var
arrParagraphs
=
[];
for
(
var
nIndex
=
0
,
nCount
=
oRevisionsStack
.
length
;
nIndex
<
nCount
;
++
nIndex
)
{
arrParagraphs
.
push
(
oRevisionsStack
[
nIndex
].
get_Paragraph
())
}
var
bNeedUpdate
=
false
;
for
(
var
nIndex
=
0
,
nCount
=
arrParagraphs
.
length
;
nIndex
<
nCount
;
++
nIndex
)
{
if
(
arrParagraphs
[
nIndex
].
Get_Lock
()
===
this
)
{
bNeedUpdate
=
true
;
break
;
}
}
if
(
bNeedUpdate
)
{
oLogicDocument
.
TrackRevisionsManager
.
Clear_VisibleChanges
();
oLogicDocument
.
Document_UpdateInterfaceState
(
false
);
}
}
}
};
};
CLock
.
prototype
.
Check
=
function
(
Id
)
CLock
.
prototype
.
Check
=
function
(
Id
)
...
...
word/Editor/Document.js
View file @
0508e317
...
@@ -8073,7 +8073,7 @@ CDocument.prototype.Document_UpdateInterfaceState = function(bSaveCurRevisionCha
...
@@ -8073,7 +8073,7 @@ CDocument.prototype.Document_UpdateInterfaceState = function(bSaveCurRevisionCha
this
.
Api
.
ClearPropObjCallback
();
this
.
Api
.
ClearPropObjCallback
();
this
.
Controller
.
UpdateInterfaceState
();
this
.
Controller
.
UpdateInterfaceState
();
this
.
TrackRevisionsManager
.
End_CollectChanges
(
editor
);
this
.
TrackRevisionsManager
.
End_CollectChanges
(
this
.
Api
);
// Сообщаем, что список составлен
// Сообщаем, что список составлен
this
.
Api
.
sync_EndCatchSelectedElements
();
this
.
Api
.
sync_EndCatchSelectedElements
();
...
...
word/Private/TrackRevisions.js
View file @
0508e317
...
@@ -55,6 +55,10 @@ Asc['asc_docs_api'].prototype.sync_EndCatchRevisionsChanges = function()
...
@@ -55,6 +55,10 @@ Asc['asc_docs_api'].prototype.sync_EndCatchRevisionsChanges = function()
{
{
this
.
sendEvent
(
"
asc_onShowRevisionsChange
"
,
this
.
RevisionChangesStack
);
this
.
sendEvent
(
"
asc_onShowRevisionsChange
"
,
this
.
RevisionChangesStack
);
};
};
Asc
[
'
asc_docs_api
'
].
prototype
.
asc_GetRevisionsChangesStack
=
function
()
{
return
this
.
RevisionChangesStack
;
};
Asc
[
'
asc_docs_api
'
].
prototype
.
sync_AddRevisionsChange
=
function
(
Change
)
Asc
[
'
asc_docs_api
'
].
prototype
.
sync_AddRevisionsChange
=
function
(
Change
)
{
{
this
.
RevisionChangesStack
.
push
(
Change
);
this
.
RevisionChangesStack
.
push
(
Change
);
...
...
word/api.js
View file @
0508e317
...
@@ -1011,6 +1011,9 @@ background-repeat: no-repeat;\
...
@@ -1011,6 +1011,9 @@ background-repeat: no-repeat;\
{
{
var
Lock
=
Class
.
Lock
;
var
Lock
=
Class
.
Lock
;
// Выставляем ID пользователя, залочившего данный элемент
Lock
.
Set_UserId
(
e
[
"
user
"
]);
var
OldType
=
Class
.
Lock
.
Get_Type
();
var
OldType
=
Class
.
Lock
.
Get_Type
();
if
(
locktype_Other2
===
OldType
||
locktype_Other3
===
OldType
)
if
(
locktype_Other2
===
OldType
||
locktype_Other3
===
OldType
)
{
{
...
@@ -1021,9 +1024,6 @@ background-repeat: no-repeat;\
...
@@ -1021,9 +1024,6 @@ background-repeat: no-repeat;\
Lock
.
Set_Type
(
locktype_Other
,
true
);
Lock
.
Set_Type
(
locktype_Other
,
true
);
}
}
// Выставляем ID пользователя, залочившего данный элемент
Lock
.
Set_UserId
(
e
[
"
user
"
]);
if
(
Class
instanceof
AscCommonWord
.
CHeaderFooterController
)
if
(
Class
instanceof
AscCommonWord
.
CHeaderFooterController
)
{
{
t
.
sync_LockHeaderFooters
();
t
.
sync_LockHeaderFooters
();
...
@@ -6686,6 +6686,9 @@ background-repeat: no-repeat;\
...
@@ -6686,6 +6686,9 @@ background-repeat: no-repeat;\
asc_docs_api
.
prototype
.
sync_EndCatchRevisionsChanges
=
function
()
asc_docs_api
.
prototype
.
sync_EndCatchRevisionsChanges
=
function
()
{
{
};
};
asc_docs_api
.
prototype
.
asc_GetRevisionsChangesStack
=
function
()
{
};
asc_docs_api
.
prototype
.
sync_AddRevisionsChange
=
function
(
Change
)
asc_docs_api
.
prototype
.
sync_AddRevisionsChange
=
function
(
Change
)
{
{
};
};
...
@@ -7828,6 +7831,7 @@ background-repeat: no-repeat;\
...
@@ -7828,6 +7831,7 @@ background-repeat: no-repeat;\
asc_docs_api
.
prototype
[
'
asc_IsTrackRevisions
'
]
=
asc_docs_api
.
prototype
.
asc_IsTrackRevisions
;
asc_docs_api
.
prototype
[
'
asc_IsTrackRevisions
'
]
=
asc_docs_api
.
prototype
.
asc_IsTrackRevisions
;
asc_docs_api
.
prototype
[
'
sync_BeginCatchRevisionsChanges
'
]
=
asc_docs_api
.
prototype
.
sync_BeginCatchRevisionsChanges
;
asc_docs_api
.
prototype
[
'
sync_BeginCatchRevisionsChanges
'
]
=
asc_docs_api
.
prototype
.
sync_BeginCatchRevisionsChanges
;
asc_docs_api
.
prototype
[
'
sync_EndCatchRevisionsChanges
'
]
=
asc_docs_api
.
prototype
.
sync_EndCatchRevisionsChanges
;
asc_docs_api
.
prototype
[
'
sync_EndCatchRevisionsChanges
'
]
=
asc_docs_api
.
prototype
.
sync_EndCatchRevisionsChanges
;
asc_docs_api
.
prototype
[
'
asc_GetRevisionsChangesStack
'
]
=
asc_docs_api
.
prototype
.
asc_GetRevisionsChangesStack
;
asc_docs_api
.
prototype
[
'
sync_AddRevisionsChange
'
]
=
asc_docs_api
.
prototype
.
sync_AddRevisionsChange
;
asc_docs_api
.
prototype
[
'
sync_AddRevisionsChange
'
]
=
asc_docs_api
.
prototype
.
sync_AddRevisionsChange
;
asc_docs_api
.
prototype
[
'
asc_AcceptChanges
'
]
=
asc_docs_api
.
prototype
.
asc_AcceptChanges
;
asc_docs_api
.
prototype
[
'
asc_AcceptChanges
'
]
=
asc_docs_api
.
prototype
.
asc_AcceptChanges
;
asc_docs_api
.
prototype
[
'
asc_RejectChanges
'
]
=
asc_docs_api
.
prototype
.
asc_RejectChanges
;
asc_docs_api
.
prototype
[
'
asc_RejectChanges
'
]
=
asc_docs_api
.
prototype
.
asc_RejectChanges
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment