Commit 6ce8f1aa authored by Sergey.Konovalov's avatar Sergey.Konovalov

На команду updateversion открываем файла во viewmode.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@55022 954022d7-b5bf-4e40-9824-e11837661b57
parent ac11ae23
......@@ -825,7 +825,10 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
else{
var incomeObject = JSON.parse(msg);
switch( incomeObject["type"] ){
case "open":
case "updateversion":
case "open":
if ("updateversion" == incomeObject["type"])
oThis.asc_setViewerMode(true);
var sJsonUrl = g_sResourceServiceLocalUrl + incomeObject["data"];
asc_ajax({
url: sJsonUrl,
......@@ -950,9 +953,6 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
if(callback)
callback(result);
break;
case "updateversion":
alert("need updateversion");
break;
default:
if(callback)
callback(incomeObject);
......
......@@ -4970,7 +4970,10 @@ function sendCommand(editor, fCallback, rdata){
success: function(msg){
var incomeObject = JSON.parse(msg);
switch(incomeObject["type"]){
case "updateversion":
case "open":
if ("updateversion" == incomeObject["type"])
editor.SetViewMode(true);
var sJsonUrl = g_sResourceServiceLocalUrl + incomeObject["data"];
asc_ajax({
url: sJsonUrl,
......@@ -5055,9 +5058,6 @@ function sendCommand(editor, fCallback, rdata){
if(fCallback)
fCallback(incomeObject);
break;
case "updateversion":
alert("need updateversion");
break;
default:
if(fCallback)
fCallback(incomeObject);
......
......@@ -7006,8 +7006,11 @@ function sendCommand(editor, fCallback, rdata){
},
success: function(msg){
var incomeObject = JSON.parse(msg);
switch(incomeObject["type"]){
case "open":
switch (incomeObject["type"]) {
case "updateversion":
case "open":
if ("updateversion" == incomeObject["type"])
editor.SetViewMode(true);
var sJsonUrl = g_sResourceServiceLocalUrl + incomeObject["data"];
asc_ajax({
url: sJsonUrl,
......@@ -7115,9 +7118,6 @@ function sendCommand(editor, fCallback, rdata){
if(fCallback)
fCallback(incomeObject);
break;
case "updateversion":
alert("need updateversion");
break;
default:
if(fCallback)
fCallback(incomeObject);
......
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