Commit d943459c authored by Dmitry.Vikulov's avatar Dmitry.Vikulov Committed by Alexander.Trofimov

Исправлен баг с загрузкой картинки как файл в мин.версии

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@48224 954022d7-b5bf-4e40-9824-e11837661b57
parent e8c6bd95
......@@ -3201,14 +3201,14 @@ function DrawingObjects() {
if ( null != event && null != event.data ) {
var data = JSON.parse(event.data);
if ( null != data && null != data.type )
if ((null != data) && (null != data["type"]))
{
if ( PostMessageType.UploadImage == data.type ) {
if(c_oAscServerError.NoError == data.error) {
if (PostMessageType.UploadImage == data["type"]) {
if (c_oAscServerError.NoError == data["error"]) {
var sheetId = null;
if(null != data.input)
sheetId = data.input.sheetId;
var url = data.url;
if (null != data["input"])
sheetId = data["input"]["sheetId"];
var url = data["url"];
if (sheetId == worksheet.model.getId())
_this.addImageDrawingObject(url, false, null);
......
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