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
7813585f
Commit
7813585f
authored
Oct 05, 2016
by
Oleg Korshul
Committed by
GitHub
Oct 05, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #76 from ONLYOFFICE/hotfix/v4.1.5
Hotfix/v4.1.5
parents
f6216e18
a9a7134d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
34 additions
and
9 deletions
+34
-9
build/build-desktop.bat
build/build-desktop.bat
+7
-7
cell/Local/api.js
cell/Local/api.js
+2
-0
common/apiBase.js
common/apiBase.js
+11
-2
slide/Editor/Format/Presentation.js
slide/Editor/Format/Presentation.js
+1
-0
slide/Local/api.js
slide/Local/api.js
+2
-0
slide/api.js
slide/api.js
+11
-0
No files found.
build/build-desktop.bat
View file @
7813585f
...
...
@@ -3,15 +3,15 @@ call npm install -g grunt-cli
call
npm
install
rem call grunt --level=WHITESPACE_ONLY --desktop=true --formatting=PRETTY_PRINT
call
grunt
-
-level
=
ADVANCED
-
-desktop
=
true
copy
..\word\sdk
-all
.js ..\..\core\build\jsdesktop\word\sdk
-all
.js
copy
..\slide\sdk
-all
.js ..\..\core\build\jsdesktop\slide\sdk
-all
.js
copy
..\cell\sdk
-all
.js ..\..\core\build\jsdesktop\cell\sdk
-all
.js
copy
..\word\sdk
-all
.js ..\..\core\build\jsdesktop\
sdkjs\
word\sdk
-all
.js
copy
..\slide\sdk
-all
.js ..\..\core\build\jsdesktop\s
dkjs\s
lide\sdk
-all
.js
copy
..\cell\sdk
-all
.js ..\..\core\build\jsdesktop\
sdkjs\
cell\sdk
-all
.js
copy
..\word\sdk
-all-min
.js ..\..\core\build\jsdesktop\word\sdk
-all-min
.js
copy
..\slide\sdk
-all-min
.js ..\..\core\build\jsdesktop\slide\sdk
-all-min
.js
copy
..\cell\sdk
-all-min
.js ..\..\core\build\jsdesktop\cell\sdk
-all-min
.js
copy
..\word\sdk
-all-min
.js ..\..\core\build\jsdesktop\
sdkjs\
word\sdk
-all-min
.js
copy
..\slide\sdk
-all-min
.js ..\..\core\build\jsdesktop\s
dkjs\s
lide\sdk
-all-min
.js
copy
..\cell\sdk
-all-min
.js ..\..\core\build\jsdesktop\
sdkjs\
cell\sdk
-all-min
.js
copy
..\common\Native\native.js ..\..\core\build\jsdesktop\common\Native\native.js
copy
..\common\Native\native.js ..\..\core\build\jsdesktop\
sdkjs\
common\Native\native.js
copy
..\word\sdk
-all
.js ..\..\core
-ext
\desktop
-sdk-wrapper
\test\src\build\win_64\Debug\Local\editors\sdkjs\word\sdk
-all
.js
copy
..\slide\sdk
-all
.js ..\..\core
-ext
\desktop
-sdk-wrapper
\test\src\build\win_64\Debug\Local\editors\sdkjs\slide\sdk
-all
.js
...
...
cell/Local/api.js
View file @
7813585f
...
...
@@ -53,6 +53,8 @@ var c_oAscError = Asc.c_oAscError;
{
this
.
asc_registerCallback
(
'
asc_onDocumentContentReady
'
,
function
(){
DesktopOfflineUpdateLocalName
(
window
[
"
Asc
"
][
"
editor
"
]);
setTimeout
(
function
(){
window
[
"
UpdateInstallPlugins
"
]();},
10
);
});
window
[
"
AscDesktopEditor
"
][
"
LocalStartOpen
"
]();
...
...
common/apiBase.js
View file @
7813585f
...
...
@@ -783,8 +783,11 @@
baseEditorsApi
.
prototype
.
asc_loadLocalImageAndAction
=
function
(
sLocalImage
,
fCallback
)
{
this
.
ImageLoader
.
LoadImage
(
AscCommon
.
getFullImageSrc2
(
sLocalImage
),
1
);
this
.
asc_replaceLoadImageCallback
(
fCallback
);
var
_loadedUrl
=
this
.
ImageLoader
.
LoadImage
(
AscCommon
.
getFullImageSrc2
(
sLocalImage
),
1
);
if
(
_loadedUrl
!=
null
)
fCallback
();
else
this
.
asc_replaceLoadImageCallback
(
fCallback
);
};
baseEditorsApi
.
prototype
.
asc_checkImageUrlAndAction
=
function
(
sImageUrl
,
fCallback
)
...
...
@@ -814,6 +817,9 @@
baseEditorsApi
.
prototype
.
asc_addOleObject
=
function
(
oPluginData
)
{
if
(
this
.
isViewMode
){
return
;
}
Asc
.
CPluginData_wrap
(
oPluginData
);
var
oThis
=
this
;
var
sImgSrc
=
oPluginData
.
getAttribute
(
"
imgSrc
"
);
...
...
@@ -837,6 +843,9 @@
baseEditorsApi
.
prototype
.
asc_editOleObject
=
function
(
oPluginData
)
{
if
(
this
.
isViewMode
){
return
;
}
Asc
.
CPluginData_wrap
(
oPluginData
);
var
oThis
=
this
;
var
bResize
=
oPluginData
.
getAttribute
(
"
resize
"
);
...
...
slide/Editor/Format/Presentation.js
View file @
7813585f
...
...
@@ -5111,6 +5111,7 @@ CPresentation.prototype =
return
true
;
}
}
this
.
Document_UpdateInterfaceState
();
}
},
...
...
slide/Local/api.js
View file @
7813585f
...
...
@@ -42,6 +42,8 @@ Asc['asc_docs_api'].prototype._OfflineAppDocumentStartLoad = function()
{
this
.
asc_registerCallback
(
'
asc_onDocumentContentReady
'
,
function
(){
DesktopOfflineUpdateLocalName
(
editor
);
setTimeout
(
function
(){
window
[
"
UpdateInstallPlugins
"
]();},
10
);
});
AscCommon
.
History
.
UserSaveMode
=
true
;
...
...
slide/api.js
View file @
7813585f
...
...
@@ -3960,6 +3960,17 @@ background-repeat: no-repeat;\
else
{
this
.
sync_StartAction
(
c_oAscAsyncActionType
.
BlockInteraction
,
c_oAscAsyncAction
.
UploadImage
);
if
(
window
[
"
AscDesktopEditor
"
])
{
var
_url
=
window
[
"
AscDesktopEditor
"
][
"
LocalFileGetImageUrl
"
](
sImageUrl
);
_url
=
g_oDocumentUrls
.
getImageUrl
(
_url
);
ImagePr
.
ImageUrl
=
_url
;
fApplyCallback
();
this
.
sync_EndAction
(
c_oAscAsyncActionType
.
BlockInteraction
,
c_oAscAsyncAction
.
UploadImage
);
return
;
}
this
.
fCurCallback
=
function
(
input
)
{
if
(
null
!=
input
&&
"
imgurl
"
==
input
[
"
type
"
])
...
...
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