Commit bc86a987 authored by Alexey Golubev's avatar Alexey Golubev

Merge

parents 421aed44 ee6078a5
......@@ -4,6 +4,9 @@ GRUNT_FLAGS = --no-color -v
OUTPUT_DIR = deploy
OUTPUT = $(OUTPUT_DIR)
COMPANY_NAME ?= onlyoffice
PRODUCT_NAME ?= documentserver
PRODUCT_VERSION ?= 0.0.0
BUILD_NUMBER ?= 0
......@@ -12,7 +15,7 @@ GRUNT_ENV += BUILD_NUMBER=$(BUILD_NUMBER)
WEBAPPS_DIR = web-apps
ifeq ($(PRODUCT_NAME),documentserver-integration)
ifeq ($(PRODUCT_NAME),$(filter $(PRODUCT_NAME),documentserver-integration documentserver-enterprise))
WEBAPPS_DIR = web-apps-pro
endif
......
#!/bin/bash
PRODUCT_VERSION="5.0.1"
BUILD_NUMBER="42"
PRODUCT_VERSION="5.0.2"
BUILD_NUMBER="12"
echo "----------------------------------------"
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()
if (oThis.m_oWordControl)
oThis.m_oWordControl.m_oApi.checkLastWork();
if (e.preventDefault)
e.preventDefault();
else
e.returnValue = false;
AscCommon.stopEvent(e);
if (AscCommon.g_inputContext && AscCommon.g_inputContext.externalChangeFocus())
return;
......@@ -4015,19 +4012,23 @@ function CThumbnailsManager()
oThis.m_oWordControl.m_oScrollThumbApi.scrollByY(45);
}
this.onMouseUp = function(e)
this.onMouseUp = function(e, bIsWindow)
{
if (oThis.m_oWordControl)
oThis.m_oWordControl.m_oApi.checkLastWork();
var _oldSender = global_mouseEvent.Sender;
AscCommon.check_MouseUpEvent(e);
global_mouseEvent.UnLockMouse();
var control = oThis.m_oWordControl.m_oThumbnails.HtmlElement;
if (global_mouseEvent.Sender != control)
{
// такого быть не должно
return;
if (_oldSender != control || true !== bIsWindow)
{
// такого быть не должно
return;
}
}
oThis.CheckNeedAnimateScrolls(-1);
......@@ -4081,6 +4082,8 @@ function CThumbnailsManager()
oThis.MouseDownTrackX = -1;
oThis.MouseDownTrackY = -1;
oThis.MouseDownTrackPosition = -1;
oThis.onMouseMove(e);
}
this.onMouseLeave = function(e)
......
......@@ -1787,7 +1787,7 @@ function CEditorPage(api)
else
{
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.height = parseInt(GlobalSkin.SplitterWidthMM * g_dKoef_mm_to_pix) + "px";
this.SplitterType = 2;
......@@ -1850,7 +1850,7 @@ function CEditorPage(api)
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";
AscCommon.stopEvent(e);
}
......@@ -2008,7 +2008,7 @@ function CEditorPage(api)
var oWordControl = oThis;
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 = "";
if (null != oWordControl.SplitterDiv)
......
......@@ -3429,12 +3429,17 @@ function CDemonstrationManager(htmlpage)
return false;
}
this.onMouseUp = function(e, isAttack)
this.onMouseUp = function(e, isAttack, isFromMainToReporter)
{
if (!oThis.isMouseDown && true !== isAttack)
return;
if (AscCommon.global_mouseEvent.IsLocked)
AscCommon.global_mouseEvent.IsLocked = false;
oThis.isMouseDown = false;
if (isFromMainToReporter && oThis.PointerDiv && oThis.HtmlPage.m_oApi.isReporterMode)
oThis.PointerRemove();
if (oThis.PointerDiv && oThis.HtmlPage.m_oApi.isReporterMode)
{
......
......@@ -6118,7 +6118,7 @@ background-repeat: no-repeat;\
}
else if (undefined !== _obj["mouseUp"])
{
_this.WordControl.DemonstrationManager.onMouseUp({}, true);
_this.WordControl.DemonstrationManager.onMouseUp({}, true, true);
}
else if (undefined !== _obj["mouseWhell"])
{
......
......@@ -245,6 +245,10 @@
{
this["recordTo"] = obj.recordTo;
}
if (typeof obj.isJson != 'undefined')
{
this["isJson"] = obj.isJson;
}
}
else
{
......@@ -258,6 +262,7 @@
this["recordTo"] = null;
this["recordCount"] = null;
this["userId"] = null;
this["isJson"] = null;
}
}
......@@ -341,6 +346,14 @@
{
this["userId"] = v;
};
CMailMergeSendData.prototype.get_IsJson = function()
{
return this["isJson"]
};
CMailMergeSendData.prototype.put_IsJson = function(v)
{
this["isJson"] = v;
};
function CAscFootnotePr(obj)
{
......@@ -6878,6 +6891,7 @@ background-repeat: no-repeat;\
// Меняем тип состояния (на сохранение)
this.advancedOptionsAction = c_oAscAdvancedOptionsAction.Save;
var isNoBase64 = typeof ArrayBuffer !== 'undefined';
var _fCallbackRequest = fCallbackRequest;
var dataContainer = {data : null, part : null, index : 0, count : 0};
var oAdditionalData = {};
......@@ -6987,7 +7001,19 @@ background-repeat: no-repeat;\
aRowOut.push(oRow[j]);
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;
if (!options.isNoCallback)
......@@ -7037,7 +7063,7 @@ background-repeat: no-repeat;\
AscCommon.saveWithParts(function(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