Commit 5f62daaf authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

При открытии документа на viewer не показываем сообщение об устаревшей версии.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@58469 954022d7-b5bf-4e40-9824-e11837661b57
parent da797a64
...@@ -807,6 +807,9 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS"; ...@@ -807,6 +807,9 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
var incomeObject = JSON.parse(msg); var incomeObject = JSON.parse(msg);
switch( incomeObject["type"] ){ switch( incomeObject["type"] ){
case "updateversion": case "updateversion":
if (oThis.asc_getViewerMode())
oThis._onOpenCommand(callback, incomeObject["data"]);
else
oThis.handlers.trigger("asc_onDocumentUpdateVersion", function () { oThis.handlers.trigger("asc_onDocumentUpdateVersion", function () {
oThis.asc_setViewerMode(true); oThis.asc_setViewerMode(true);
oThis._onOpenCommand(callback, incomeObject["data"]); oThis._onOpenCommand(callback, incomeObject["data"]);
......
...@@ -4912,6 +4912,9 @@ function sendCommand(editor, fCallback, rdata){ ...@@ -4912,6 +4912,9 @@ function sendCommand(editor, fCallback, rdata){
var incomeObject = JSON.parse(msg), rData; var incomeObject = JSON.parse(msg), rData;
switch(incomeObject["type"]){ switch(incomeObject["type"]){
case "updateversion": case "updateversion":
if (editor.isViewMode)
_onOpenCommand(fCallback, incomeObject);
else
editor.asc_fireCallback("asc_onDocumentUpdateVersion", function () { editor.asc_fireCallback("asc_onDocumentUpdateVersion", function () {
editor.SetViewMode(true); editor.SetViewMode(true);
_onOpenCommand(fCallback, incomeObject); _onOpenCommand(fCallback, incomeObject);
......
...@@ -7320,6 +7320,9 @@ function sendCommand(editor, fCallback, rdata){ ...@@ -7320,6 +7320,9 @@ function sendCommand(editor, fCallback, rdata){
var incomeObject = JSON.parse(msg), rData; var incomeObject = JSON.parse(msg), rData;
switch (incomeObject["type"]) { switch (incomeObject["type"]) {
case "updateversion": case "updateversion":
if (editor.isViewMode)
_onOpenCommand(fCallback, incomeObject);
else
editor.asc_fireCallback("asc_onDocumentUpdateVersion", function () { editor.asc_fireCallback("asc_onDocumentUpdateVersion", function () {
editor.SetViewMode(true); editor.SetViewMode(true);
_onOpenCommand(fCallback, incomeObject); _onOpenCommand(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