Commit 9af902a4 authored by Alexey.Musinov's avatar Alexey.Musinov

up

parent 2d94935b
......@@ -630,7 +630,17 @@
this.clearRect(0, 0, this.getWidth(), this.getHeight());
return this;
};
DrawingContext.prototype.AddClipRect = function () {
return this;
};
DrawingContext.prototype.RemoveClipRect = function (x, y, w, h) {
return this;
};
DrawingContext.prototype.save = function () {
this.nctx["PD_Save"]();
return this;
......
......@@ -488,24 +488,27 @@
if (window['IS_NATIVE_EDITOR'])
{
var result = window["native"]["openFileCommand"](sFileUrl, changesUrl, Signature);
var url;
var nIndex = sFileUrl.lastIndexOf("/");
url = (-1 !== nIndex) ? sFileUrl.substring(0, nIndex + 1) : sFileUrl;
if (0 < result.length)
{
oResult.bSerFormat = Signature === result.substring(0, Signature.length);
oResult.data = result;
oResult.url = url;
}
else
{
bError = true;
}
bEndLoadFile = true;
onEndOpen();
var stream = window["native"]["openFileCommand"](sFileUrl, changesUrl, Signature);
//получаем url к папке с файлом
var url;
var nIndex = sFileUrl.lastIndexOf("/");
url = (-1 !== nIndex) ? sFileUrl.substring(0, nIndex + 1) : sFileUrl;
if (stream) {
oResult.bSerFormat = checkStreamSignature(stream, Signature);
if (oResult.bSerFormat) {
oResult.data = stream;
} else {
oResult.data = stream;
}
} else {
bError = true;
}
bEndLoadFile = true;
onEndOpen();
}
}
......
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