Commit bc86a987 authored by Alexey Golubev's avatar Alexey Golubev

Merge

parents 421aed44 ee6078a5
...@@ -4,6 +4,9 @@ GRUNT_FLAGS = --no-color -v ...@@ -4,6 +4,9 @@ GRUNT_FLAGS = --no-color -v
OUTPUT_DIR = deploy OUTPUT_DIR = deploy
OUTPUT = $(OUTPUT_DIR) OUTPUT = $(OUTPUT_DIR)
COMPANY_NAME ?= onlyoffice
PRODUCT_NAME ?= documentserver
PRODUCT_VERSION ?= 0.0.0 PRODUCT_VERSION ?= 0.0.0
BUILD_NUMBER ?= 0 BUILD_NUMBER ?= 0
...@@ -12,7 +15,7 @@ GRUNT_ENV += BUILD_NUMBER=$(BUILD_NUMBER) ...@@ -12,7 +15,7 @@ GRUNT_ENV += BUILD_NUMBER=$(BUILD_NUMBER)
WEBAPPS_DIR = web-apps WEBAPPS_DIR = web-apps
ifeq ($(PRODUCT_NAME),documentserver-integration) ifeq ($(PRODUCT_NAME),$(filter $(PRODUCT_NAME),documentserver-integration documentserver-enterprise))
WEBAPPS_DIR = web-apps-pro WEBAPPS_DIR = web-apps-pro
endif endif
......
#!/bin/bash #!/bin/bash
PRODUCT_VERSION="5.0.1" PRODUCT_VERSION="5.0.2"
BUILD_NUMBER="42" BUILD_NUMBER="12"
echo "----------------------------------------" echo "----------------------------------------"
echo "Building for mobile" echo "Building for mobile"
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -3616,10 +3616,7 @@ function CThumbnailsManager() ...@@ -3616,10 +3616,7 @@ function CThumbnailsManager()
if (oThis.m_oWordControl) if (oThis.m_oWordControl)
oThis.m_oWordControl.m_oApi.checkLastWork(); oThis.m_oWordControl.m_oApi.checkLastWork();
if (e.preventDefault) AscCommon.stopEvent(e);
e.preventDefault();
else
e.returnValue = false;
if (AscCommon.g_inputContext && AscCommon.g_inputContext.externalChangeFocus()) if (AscCommon.g_inputContext && AscCommon.g_inputContext.externalChangeFocus())
return; return;
...@@ -4015,19 +4012,23 @@ function CThumbnailsManager() ...@@ -4015,19 +4012,23 @@ function CThumbnailsManager()
oThis.m_oWordControl.m_oScrollThumbApi.scrollByY(45); oThis.m_oWordControl.m_oScrollThumbApi.scrollByY(45);
} }
this.onMouseUp = function(e) this.onMouseUp = function(e, bIsWindow)
{ {
if (oThis.m_oWordControl) if (oThis.m_oWordControl)
oThis.m_oWordControl.m_oApi.checkLastWork(); oThis.m_oWordControl.m_oApi.checkLastWork();
var _oldSender = global_mouseEvent.Sender;
AscCommon.check_MouseUpEvent(e); AscCommon.check_MouseUpEvent(e);
global_mouseEvent.UnLockMouse(); global_mouseEvent.UnLockMouse();
var control = oThis.m_oWordControl.m_oThumbnails.HtmlElement; var control = oThis.m_oWordControl.m_oThumbnails.HtmlElement;
if (global_mouseEvent.Sender != control) if (global_mouseEvent.Sender != control)
{ {
// такого быть не должно if (_oldSender != control || true !== bIsWindow)
return; {
// такого быть не должно
return;
}
} }
oThis.CheckNeedAnimateScrolls(-1); oThis.CheckNeedAnimateScrolls(-1);
...@@ -4081,6 +4082,8 @@ function CThumbnailsManager() ...@@ -4081,6 +4082,8 @@ function CThumbnailsManager()
oThis.MouseDownTrackX = -1; oThis.MouseDownTrackX = -1;
oThis.MouseDownTrackY = -1; oThis.MouseDownTrackY = -1;
oThis.MouseDownTrackPosition = -1; oThis.MouseDownTrackPosition = -1;
oThis.onMouseMove(e);
} }
this.onMouseLeave = function(e) this.onMouseLeave = function(e)
......
...@@ -1787,7 +1787,7 @@ function CEditorPage(api) ...@@ -1787,7 +1787,7 @@ function CEditorPage(api)
else else
{ {
Splitter.style.left = parseInt((this.Splitter1Pos + GlobalSkin.SplitterWidthMM) * g_dKoef_mm_to_pix) + "px"; Splitter.style.left = parseInt((this.Splitter1Pos + GlobalSkin.SplitterWidthMM) * g_dKoef_mm_to_pix) + "px";
Splitter.style.top = this.Height - parseInt((this.Splitter2Pos + GlobalSkin.SplitterWidthMM) * g_dKoef_mm_to_pix) + "px"; Splitter.style.top = (this.Height - parseInt((this.Splitter2Pos + GlobalSkin.SplitterWidthMM) * g_dKoef_mm_to_pix) + 1) + "px";
Splitter.style.width = this.Width - parseInt((this.Splitter1Pos + GlobalSkin.SplitterWidthMM) * g_dKoef_mm_to_pix) + "px"; Splitter.style.width = this.Width - parseInt((this.Splitter1Pos + GlobalSkin.SplitterWidthMM) * g_dKoef_mm_to_pix) + "px";
Splitter.style.height = parseInt(GlobalSkin.SplitterWidthMM * g_dKoef_mm_to_pix) + "px"; Splitter.style.height = parseInt(GlobalSkin.SplitterWidthMM * g_dKoef_mm_to_pix) + "px";
this.SplitterType = 2; this.SplitterType = 2;
...@@ -1850,7 +1850,7 @@ function CEditorPage(api) ...@@ -1850,7 +1850,7 @@ function CEditorPage(api)
if (_isCatch) if (_isCatch)
{ {
if (oWordControl.m_oApi.isReporterMode && oWordControl.m_oMainParent && oWordControl.m_oMainParent.HtmlElement) if (oWordControl.m_oMainParent && oWordControl.m_oMainParent.HtmlElement)
oWordControl.m_oMainParent.HtmlElement.style.pointerEvents = "none"; oWordControl.m_oMainParent.HtmlElement.style.pointerEvents = "none";
AscCommon.stopEvent(e); AscCommon.stopEvent(e);
} }
...@@ -2008,7 +2008,7 @@ function CEditorPage(api) ...@@ -2008,7 +2008,7 @@ function CEditorPage(api)
var oWordControl = oThis; var oWordControl = oThis;
oWordControl.m_oDrawingDocument.UnlockCursorType(); oWordControl.m_oDrawingDocument.UnlockCursorType();
if (oWordControl.m_oApi.isReporterMode && oWordControl.m_oMainParent && oWordControl.m_oMainParent.HtmlElement) if (oWordControl.m_oMainParent && oWordControl.m_oMainParent.HtmlElement)
oWordControl.m_oMainParent.HtmlElement.style.pointerEvents = ""; oWordControl.m_oMainParent.HtmlElement.style.pointerEvents = "";
if (null != oWordControl.SplitterDiv) if (null != oWordControl.SplitterDiv)
......
...@@ -3429,12 +3429,17 @@ function CDemonstrationManager(htmlpage) ...@@ -3429,12 +3429,17 @@ function CDemonstrationManager(htmlpage)
return false; return false;
} }
this.onMouseUp = function(e, isAttack) this.onMouseUp = function(e, isAttack, isFromMainToReporter)
{ {
if (!oThis.isMouseDown && true !== isAttack) if (!oThis.isMouseDown && true !== isAttack)
return; return;
if (AscCommon.global_mouseEvent.IsLocked)
AscCommon.global_mouseEvent.IsLocked = false;
oThis.isMouseDown = false; oThis.isMouseDown = false;
if (isFromMainToReporter && oThis.PointerDiv && oThis.HtmlPage.m_oApi.isReporterMode)
oThis.PointerRemove();
if (oThis.PointerDiv && oThis.HtmlPage.m_oApi.isReporterMode) if (oThis.PointerDiv && oThis.HtmlPage.m_oApi.isReporterMode)
{ {
......
...@@ -6118,7 +6118,7 @@ background-repeat: no-repeat;\ ...@@ -6118,7 +6118,7 @@ background-repeat: no-repeat;\
} }
else if (undefined !== _obj["mouseUp"]) else if (undefined !== _obj["mouseUp"])
{ {
_this.WordControl.DemonstrationManager.onMouseUp({}, true); _this.WordControl.DemonstrationManager.onMouseUp({}, true, true);
} }
else if (undefined !== _obj["mouseWhell"]) else if (undefined !== _obj["mouseWhell"])
{ {
......
...@@ -245,6 +245,10 @@ ...@@ -245,6 +245,10 @@
{ {
this["recordTo"] = obj.recordTo; this["recordTo"] = obj.recordTo;
} }
if (typeof obj.isJson != 'undefined')
{
this["isJson"] = obj.isJson;
}
} }
else else
{ {
...@@ -258,6 +262,7 @@ ...@@ -258,6 +262,7 @@
this["recordTo"] = null; this["recordTo"] = null;
this["recordCount"] = null; this["recordCount"] = null;
this["userId"] = null; this["userId"] = null;
this["isJson"] = null;
} }
} }
...@@ -341,6 +346,14 @@ ...@@ -341,6 +346,14 @@
{ {
this["userId"] = v; this["userId"] = v;
}; };
CMailMergeSendData.prototype.get_IsJson = function()
{
return this["isJson"]
};
CMailMergeSendData.prototype.put_IsJson = function(v)
{
this["isJson"] = v;
};
function CAscFootnotePr(obj) function CAscFootnotePr(obj)
{ {
...@@ -6878,6 +6891,7 @@ background-repeat: no-repeat;\ ...@@ -6878,6 +6891,7 @@ background-repeat: no-repeat;\
// Меняем тип состояния (на сохранение) // Меняем тип состояния (на сохранение)
this.advancedOptionsAction = c_oAscAdvancedOptionsAction.Save; this.advancedOptionsAction = c_oAscAdvancedOptionsAction.Save;
var isNoBase64 = typeof ArrayBuffer !== 'undefined'; var isNoBase64 = typeof ArrayBuffer !== 'undefined';
var _fCallbackRequest = fCallbackRequest;
var dataContainer = {data : null, part : null, index : 0, count : 0}; var dataContainer = {data : null, part : null, index : 0, count : 0};
var oAdditionalData = {}; var oAdditionalData = {};
...@@ -6987,7 +7001,19 @@ background-repeat: no-repeat;\ ...@@ -6987,7 +7001,19 @@ background-repeat: no-repeat;\
aRowOut.push(oRow[j]); aRowOut.push(oRow[j]);
aJsonOut.push(aRowOut); aJsonOut.push(aRowOut);
} }
dataContainer.data = dataContainer.data.length + ';' + dataContainer.data + JSON.stringify(aJsonOut); var editorData = dataContainer.data;
dataContainer.data = JSON.stringify(aJsonOut);
options.oMailMergeSendData.put_IsJson(true);
//save Editor.bin after json
_fCallbackRequest = function(incomeObject){
oAdditionalData["savekey"] = incomeObject["data"];
dataContainer = {data : editorData, part : null, index : 0, count : 0};
options.oMailMergeSendData.put_IsJson(false);
AscCommon.saveWithParts(function(fCallback1, oAdditionalData1, dataContainer1) {
sendCommand(t, fCallback1, oAdditionalData1, dataContainer1);
}, fCallback, fCallbackRequest, oAdditionalData, dataContainer);
}
} }
var fCallback = null; var fCallback = null;
if (!options.isNoCallback) if (!options.isNoCallback)
...@@ -7037,7 +7063,7 @@ background-repeat: no-repeat;\ ...@@ -7037,7 +7063,7 @@ background-repeat: no-repeat;\
AscCommon.saveWithParts(function(fCallback1, oAdditionalData1, dataContainer1) AscCommon.saveWithParts(function(fCallback1, oAdditionalData1, dataContainer1)
{ {
sendCommand(t, fCallback1, oAdditionalData1, dataContainer1); sendCommand(t, fCallback1, oAdditionalData1, dataContainer1);
}, fCallback, fCallbackRequest, oAdditionalData, dataContainer); }, fCallback, _fCallbackRequest, oAdditionalData, dataContainer);
} }
// Вставка диаграмм // Вставка диаграмм
......
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