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() { ...@@ -3201,14 +3201,14 @@ function DrawingObjects() {
if ( null != event && null != event.data ) { if ( null != event && null != event.data ) {
var data = JSON.parse(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 (PostMessageType.UploadImage == data["type"]) {
if(c_oAscServerError.NoError == data.error) { if (c_oAscServerError.NoError == data["error"]) {
var sheetId = null; var sheetId = null;
if(null != data.input) if (null != data["input"])
sheetId = data.input.sheetId; sheetId = data["input"]["sheetId"];
var url = data.url; var url = data["url"];
if (sheetId == worksheet.model.getId()) if (sheetId == worksheet.model.getId())
_this.addImageDrawingObject(url, false, null); _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