Commit 1e804d12 authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

для бага Bug 25810 - [Docs] Пользователи попадают в разные версии документа...

для бага Bug 25810 - [Docs] Пользователи попадают в разные версии документа при выходе последнего и заходе, когда версия почти собралась.
выдаем ошибку в этом случае.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57615 954022d7-b5bf-4e40-9824-e11837661b57
parent afd098f5
......@@ -820,8 +820,10 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
switch( incomeObject["type"] ){
case "updateversion":
case "open":
if ("updateversion" == incomeObject["type"])
if ("updateversion" == incomeObject["type"]){
oThis.asc_setViewerMode(true);
oThis.handlers.trigger("asc_onError", c_oAscError.ID.FileRequest, c_oAscError.Level.Critical);
}
var sJsonUrl = g_sResourceServiceLocalUrl + incomeObject["data"];
asc_ajax({
url: sJsonUrl,
......
......@@ -4957,8 +4957,10 @@ function sendCommand(editor, fCallback, rdata){
switch(incomeObject["type"]){
case "updateversion":
case "open":
if ("updateversion" == incomeObject["type"])
if ("updateversion" == incomeObject["type"]){
editor.SetViewMode(true);
editor.asc_fireCallback("asc_onError",c_oAscError.ID.FileRequest,c_oAscError.Level.Critical);
}
var sJsonUrl = g_sResourceServiceLocalUrl + incomeObject["data"];
asc_ajax({
url: sJsonUrl,
......
......@@ -7248,8 +7248,10 @@ function sendCommand(editor, fCallback, rdata){
switch (incomeObject["type"]) {
case "updateversion":
case "open":
if ("updateversion" == incomeObject["type"])
if ("updateversion" == incomeObject["type"]){
editor.SetViewMode(true);
editor.asc_fireCallback("asc_onError",c_oAscError.ID.FileRequest,c_oAscError.Level.Critical);
}
var sJsonUrl = g_sResourceServiceLocalUrl + incomeObject["data"];
asc_ajax({
url: sJsonUrl,
......
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