Commit d87b0111 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@50104 954022d7-b5bf-4e40-9824-e11837661b57
parent 028143e3
......@@ -387,6 +387,23 @@ asc_docs_api.prototype._coAuthoringInit = function () {
else
editor.WordControl.m_oLogicDocument.DrawingDocument.UnLockSlide(Class.num);
}
if(object instanceof CPresentation)
{
if(Class === object.themeLock)
{
if(NewType !== locktype_Mine && NewType !== locktype_None)
editor.asc_fireCallback("asc_onLockDocumentTheme");
else
editor.asc_fireCallback("asc_onUnLockDocumentTheme");
}
if(Class === object.slideSizeLock)
{
if(NewType !== locktype_Mine && NewType !== locktype_None)
editor.asc_fireCallback("asc_onLockDocumentProps");
else
editor.asc_fireCallback("asc_onUnLockDocumentProps");
}
}
}
......@@ -2792,7 +2809,7 @@ asc_docs_api.prototype.AddImage = function(){
var bNeedSubmit = true;
if(e && e.target && e.target.files)
{
var file = files[0];
var file = e.target.files[0];
var nError = ValidateUploadImage(e.target.files);
if(c_oAscServerError.NoError != nError)
{
......
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