Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
90809774
Commit
90809774
authored
Oct 26, 2016
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add var
parent
e287cb0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
19 deletions
+18
-19
common/editorscommon.js
common/editorscommon.js
+18
-19
No files found.
common/editorscommon.js
View file @
90809774
...
...
@@ -318,25 +318,24 @@ function openFileCommand(binUrl, changesUrl, Signature, callback) {
}
else
{
bEndLoadChanges
=
true
;
}
if
(
window
[
'
IS_NATIVE_EDITOR
'
])
{
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
();
}
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
();
}
}
function
sendCommand
(
editor
,
fCallback
,
rdata
,
dataContainer
)
{
//json не должен превышать размера 2097152, иначе при его чтении будет exception
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment