Commit f7c22c82 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Добавил функцию обновления локов у всех листов (после отправки своих изменений...

Добавил функцию обновления локов у всех листов (после отправки своих изменений ее вызываем, чтобы обновить lock у листов)
Баг http://bugzserver/show_bug.cgi?id=19952

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@49840 954022d7-b5bf-4e40-9824-e11837661b57
parent a7fb62c2
...@@ -1252,6 +1252,7 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS"; ...@@ -1252,6 +1252,7 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
"applyChanges": function () {t._onApplyChanges.apply(t, arguments);}, "applyChanges": function () {t._onApplyChanges.apply(t, arguments);},
"updateAfterApplyChanges": function () {t._onUpdateAfterApplyChanges.apply(t, arguments);}, "updateAfterApplyChanges": function () {t._onUpdateAfterApplyChanges.apply(t, arguments);},
"drawSelection": function () {t._onDrawSelection.apply(t, arguments);}, "drawSelection": function () {t._onDrawSelection.apply(t, arguments);},
"updateAllSheetsLock": function () {t._onUpdateAllSheetsLock.apply(t, arguments);},
"showDrawingObjects": function () {t._onShowDrawingObjects.apply(t, arguments);}, "showDrawingObjects": function () {t._onShowDrawingObjects.apply(t, arguments);},
"resetLockedGraphicObjects": function () {t._onResetLockedGraphicObjects.apply(t, arguments);}, "resetLockedGraphicObjects": function () {t._onResetLockedGraphicObjects.apply(t, arguments);},
"showComments": function () {t._onShowComments.apply(t, arguments);}, "showComments": function () {t._onShowComments.apply(t, arguments);},
...@@ -1501,6 +1502,20 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS"; ...@@ -1501,6 +1502,20 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
if (this.wb) if (this.wb)
this.wb.getWorksheet()._drawSelection(); this.wb.getWorksheet()._drawSelection();
}, },
_onUpdateAllSheetsLock: function () {
var t = this;
if (t.wbModel) {
// Шлем update для листов
t.handlers.trigger("asc_onWorkbookLocked", t.asc_isWorkbookLocked());
var i, length, wsModel, wsIndex;
for (i = 0, length = t.wbModel.getWorksheetCount(); i < length; ++i) {
wsModel = t.wbModel.getWorksheet(i);
wsIndex = wsModel.getIndex();
t.handlers.trigger("asc_onWorksheetLocked", wsIndex, t.asc_isWorksheetLockedOrDeleted(wsIndex));
}
}
},
_onShowDrawingObjects: function () { _onShowDrawingObjects: function () {
if (this.wb) { if (this.wb) {
......
...@@ -241,6 +241,7 @@ ...@@ -241,6 +241,7 @@
// Перерисовываем // Перерисовываем
if (bCheckRedraw) { if (bCheckRedraw) {
this.handlers.trigger("drawSelection"); this.handlers.trigger("drawSelection");
this.handlers.trigger("updateAllSheetsLock");
this.handlers.trigger("unlockComments"); this.handlers.trigger("unlockComments");
this.handlers.trigger("showComments"); this.handlers.trigger("showComments");
this.handlers.trigger("resetLockedGraphicObjects"); this.handlers.trigger("resetLockedGraphicObjects");
......
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