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
73fdebca
Commit
73fdebca
authored
Jan 10, 2017
by
Alexey Golubev
Browse files
Options
Browse Files
Download
Plain Diff
Merge tag 'staropramen' into develop
staropramen
parents
a4c52c6c
578f64a5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
common/docscoapi.js
common/docscoapi.js
+1
-1
common/editorscommon.js
common/editorscommon.js
+9
-3
common/spellcheckapi.js
common/spellcheckapi.js
+1
-1
No files found.
common/docscoapi.js
View file @
73fdebca
...
...
@@ -1347,7 +1347,7 @@
DocsCoApi
.
prototype
.
setDocId
=
function
(
docid
)
{
//todo возможно надо менять sockjs_url
this
.
_docid
=
docid
;
this
.
sockjs_url
=
'
/doc/
'
+
docid
+
'
/c
'
;
this
.
sockjs_url
=
AscCommon
.
getBaseUrl
()
+
'
../../../..
/doc/
'
+
docid
+
'
/c
'
;
};
// Авторизация (ее нужно делать после выставления состояния редактора view-mode)
DocsCoApi
.
prototype
.
auth
=
function
(
isViewer
,
opt_openCmd
)
{
...
...
common/editorscommon.js
View file @
73fdebca
...
...
@@ -118,11 +118,16 @@ String.prototype.strongMatch = function(regExp){
if
(
typeof
require
==
"
function
"
&&
!
window
[
"
XRegExp
"
]){
window
[
"
XRegExp
"
]
=
require
(
"
xregexp
"
);}
var
oZipChanges
=
null
;
var
sDownloadServiceLocalUrl
=
"
/downloadas
"
;
var
sUploadServiceLocalUrl
=
"
/upload
"
;
var
sUploadServiceLocalUrlOld
=
"
/uploadold
"
;
var
sDownloadServiceLocalUrl
=
"
../../../..
/downloadas
"
;
var
sUploadServiceLocalUrl
=
"
../../../..
/upload
"
;
var
sUploadServiceLocalUrlOld
=
"
../../../..
/uploadold
"
;
var
nMaxRequestLength
=
5242880
;
//5mb <requestLimits maxAllowedContentLength="30000000" /> default 30mb
function
getBaseUrl
()
{
var
index_html
=
window
[
"
location
"
][
"
href
"
];
return
index_html
.
substring
(
0
,
index_html
.
lastIndexOf
(
"
/
"
)
+
1
);
}
function
getEncodingParams
()
{
var
res
=
[];
for
(
var
i
=
0
;
i
<
AscCommon
.
c_oAscEncodings
.
length
;
++
i
)
{
...
...
@@ -2334,6 +2339,7 @@ window["SetDoctRendererParams"] = function(_params)
//------------------------------------------------------------export---------------------------------------------------
window
[
'
AscCommon
'
]
=
window
[
'
AscCommon
'
]
||
{};
window
[
"
AscCommon
"
].
getBaseUrl
=
getBaseUrl
;
window
[
"
AscCommon
"
].
getEncodingParams
=
getEncodingParams
;
window
[
"
AscCommon
"
].
saveWithParts
=
saveWithParts
;
window
[
"
AscCommon
"
].
loadFileContent
=
loadFileContent
;
...
...
common/spellcheckapi.js
View file @
73fdebca
...
...
@@ -242,7 +242,7 @@
SpellCheckApi
.
prototype
.
init
=
function
(
docid
)
{
this
.
_docid
=
docid
;
//Begin send auth
this
.
sockjs_url
=
this
.
_url
+
'
/doc/
'
+
docid
+
'
/c
'
;
this
.
sockjs_url
=
AscCommon
.
getBaseUrl
()
+
"
../../../..
"
+
this
.
_url
+
'
/doc/
'
+
docid
+
'
/c
'
;
this
.
sockjs
=
initSocksJs
(
this
.
sockjs_url
,
this
);
};
...
...
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