Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web-apps
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
web-apps
Commits
4dd21ea5
Commit
4dd21ea5
authored
Oct 25, 2016
by
Alexey Golubev
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'hotfix/v4.1.6'
parents
c083753f
04acc3ec
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
48 additions
and
64 deletions
+48
-64
apps/api/documents/api.js
apps/api/documents/api.js
+11
-54
apps/common/main/lib/controller/Plugins.js
apps/common/main/lib/controller/Plugins.js
+2
-1
apps/common/main/lib/view/Plugins.js
apps/common/main/lib/view/Plugins.js
+5
-0
apps/documenteditor/main/app/controller/Main.js
apps/documenteditor/main/app/controller/Main.js
+9
-2
apps/documenteditor/main/app/view/LeftMenu.js
apps/documenteditor/main/app/view/LeftMenu.js
+1
-1
apps/presentationeditor/main/app/controller/Main.js
apps/presentationeditor/main/app/controller/Main.js
+9
-2
apps/presentationeditor/main/app/view/LeftMenu.js
apps/presentationeditor/main/app/view/LeftMenu.js
+1
-1
apps/spreadsheeteditor/main/app/controller/Main.js
apps/spreadsheeteditor/main/app/controller/Main.js
+9
-2
apps/spreadsheeteditor/main/app/view/LeftMenu.js
apps/spreadsheeteditor/main/app/view/LeftMenu.js
+1
-1
No files found.
apps/api/documents/api.js
View file @
4dd21ea5
...
...
@@ -105,63 +105,20 @@
text: 'Go to London'
},
chat: false,
comments: false
comments: false,
leftMenu: true,
rightMenu: true,
toolbar: true
},
plugins: {
autoStartGuid: 'asc.{FFE1F462-1EA2-4391-990D-4CC84940B754}',
url: '../../../../sdkjs-plugins/',
pluginsData: [{
name : "chess (fen)",
guid : "asc.{FFE1F462-1EA2-4391-990D-4CC84940B754}",
baseUrl: "",
variations : [
{
description : "chess",
url : "chess/index.html",
icons : ["chess/icon.png", "chess/icon@2x.png"],
isViewer : true,
EditorsSupport : ["word", "cell", "slide"],
isVisual : true,
isModal : true,
isInsideMode : false,
initDataType : "ole",
initData : "",
isUpdateOleOnResize : true,
buttons : [ { text: "Ok", primary: true },
{ text: "Cancel", primary: false } ]
}
]
},
{
name : "glavred",
guid : "asc.{B631E142-E40B-4B4C-90B9-2D00222A286E}",
baseUrl: "",
variations : [
{
description : "glavred",
url : "glavred/index.html",
icons : ["glavred/icon.png", "glavred/icon@2x.png"],
isViewer : true,
EditorsSupport : ["word", "cell", "slide"],
isVisual : true,
isModal : true,
isInsideMode : false,
initDataType : "text",
initData : "",
isUpdateOleOnResize : false,
buttons : [ { text: "Ok", primary: true } ]
}
]
}
pluginsData: [
"helloworld/config.json",
"chess/config.json",
"speech/config.json",
"clipart/config.json",
]
}
},
events: {
...
...
apps/common/main/lib/controller/Plugins.js
View file @
4dd21ea5
...
...
@@ -224,7 +224,8 @@ define([
url
=
((
plugin
.
get_BaseUrl
().
length
==
0
)
?
this
.
panelPlugins
.
pluginsPath
:
plugin
.
get_BaseUrl
())
+
url
;
if
(
variation
.
get_InsideMode
())
{
this
.
panelPlugins
.
openInsideMode
(
plugin
.
get_Name
(),
url
);
if
(
!
this
.
panelPlugins
.
openInsideMode
(
plugin
.
get_Name
(),
url
))
this
.
api
.
asc_pluginButtonClick
(
-
1
);
}
else
{
var
me
=
this
,
arrBtns
=
variation
.
get_Buttons
(),
...
...
apps/common/main/lib/view/Plugins.js
View file @
4dd21ea5
...
...
@@ -138,6 +138,8 @@ define([
},
openInsideMode
:
function
(
name
,
url
)
{
if
(
!
this
.
pluginsPanel
)
return
false
;
this
.
pluginsPanel
.
toggleClass
(
'
hidden
'
,
true
);
this
.
currentPluginPanel
.
toggleClass
(
'
hidden
'
,
false
);
...
...
@@ -161,9 +163,12 @@ define([
this
.
iframePlugin
.
src
=
url
;
}
return
true
;
},
closeInsideMode
:
function
()
{
if
(
!
this
.
pluginsPanel
)
return
;
if
(
this
.
iframePlugin
)
{
this
.
currentPluginFrame
.
empty
();
this
.
iframePlugin
=
null
;
...
...
apps/documenteditor/main/app/controller/Main.js
View file @
4dd21ea5
...
...
@@ -61,7 +61,10 @@ define([
var
mapCustomizationElements
=
{
about
:
'
button#left-btn-about
'
,
feedback
:
'
button#left-btn-support
'
,
goback
:
'
#fm-btn-back > a, #header-back > div
'
goback
:
'
#fm-btn-back > a, #header-back > div
'
,
toolbar
:
'
#viewport #toolbar
'
,
leftMenu
:
'
#viewport #left-menu
'
,
rightMenu
:
'
#viewport #right-menu
'
};
Common
.
localStorage
.
setId
(
'
text
'
);
...
...
@@ -1768,6 +1771,7 @@ define([
if
(
arr
.
length
>
0
)
this
.
updatePluginsList
({
autoStartGuid
:
plugins
.
autoStartGuid
,
url
:
plugins
.
url
,
pluginsData
:
arr
});
...
...
@@ -1826,8 +1830,11 @@ define([
this
.
appOptions
.
pluginsPath
=
''
;
this
.
appOptions
.
canPlugins
=
false
;
}
if
(
this
.
appOptions
.
canPlugins
)
if
(
this
.
appOptions
.
canPlugins
)
{
this
.
getApplication
().
getController
(
'
Common.Controllers.Plugins
'
).
setMode
(
this
.
appOptions
);
if
(
plugins
.
autoStartGuid
)
this
.
api
.
asc_pluginRun
(
plugins
.
autoStartGuid
,
0
,
''
);
}
this
.
getApplication
().
getController
(
'
LeftMenu
'
).
enablePlugins
();
},
...
...
apps/documenteditor/main/app/view/LeftMenu.js
View file @
4dd21ea5
...
...
@@ -309,7 +309,7 @@ define([
showMenu
:
function
(
menu
,
opts
)
{
var
re
=
/^
(\w
+
)
:
?(\w
*
)
$/
.
exec
(
menu
);
if
(
re
[
1
]
==
'
file
'
)
{
if
(
re
[
1
]
==
'
file
'
&&
this
.
btnFile
.
isVisible
()
)
{
if
(
!
this
.
btnFile
.
pressed
)
{
this
.
btnFile
.
toggle
(
true
);
// this.onBtnMenuClick(this.btnFile);
...
...
apps/presentationeditor/main/app/controller/Main.js
View file @
4dd21ea5
...
...
@@ -59,7 +59,10 @@ define([
var
mapCustomizationElements
=
{
about
:
'
button#left-btn-about
'
,
feedback
:
'
button#left-btn-support
'
,
goback
:
'
#fm-btn-back > a, #header-back > div
'
goback
:
'
#fm-btn-back > a, #header-back > div
'
,
toolbar
:
'
#viewport #toolbar
'
,
leftMenu
:
'
#viewport #left-menu
'
,
rightMenu
:
'
#viewport #right-menu
'
};
Common
.
localStorage
.
setId
(
'
presentation
'
);
...
...
@@ -1542,6 +1545,7 @@ define([
if
(
arr
.
length
>
0
)
this
.
updatePluginsList
({
autoStartGuid
:
plugins
.
autoStartGuid
,
url
:
plugins
.
url
,
pluginsData
:
arr
});
...
...
@@ -1600,8 +1604,11 @@ define([
this
.
appOptions
.
pluginsPath
=
''
;
this
.
appOptions
.
canPlugins
=
false
;
}
if
(
this
.
appOptions
.
canPlugins
)
if
(
this
.
appOptions
.
canPlugins
)
{
this
.
getApplication
().
getController
(
'
Common.Controllers.Plugins
'
).
setMode
(
this
.
appOptions
);
if
(
plugins
.
autoStartGuid
)
this
.
api
.
asc_pluginRun
(
plugins
.
autoStartGuid
,
0
,
''
);
}
this
.
getApplication
().
getController
(
'
LeftMenu
'
).
enablePlugins
();
},
...
...
apps/presentationeditor/main/app/view/LeftMenu.js
View file @
4dd21ea5
...
...
@@ -330,7 +330,7 @@ define([
showMenu
:
function
(
menu
)
{
var
re
=
/^
(\w
+
)
:
?(\w
*
)
$/
.
exec
(
menu
);
if
(
re
[
1
]
==
'
file
'
)
{
if
(
re
[
1
]
==
'
file
'
&&
this
.
btnFile
.
isVisible
()
)
{
if
(
!
this
.
btnFile
.
pressed
)
{
this
.
btnFile
.
toggle
(
true
);
// this.onBtnMenuClick(this.btnFile);
...
...
apps/spreadsheeteditor/main/app/controller/Main.js
View file @
4dd21ea5
...
...
@@ -65,7 +65,10 @@ define([
var
mapCustomizationElements
=
{
about
:
'
button#left-btn-about
'
,
feedback
:
'
button#left-btn-support
'
,
goback
:
'
#fm-btn-back > a, #header-back > div
'
goback
:
'
#fm-btn-back > a, #header-back > div
'
,
toolbar
:
'
#viewport #toolbar
'
,
leftMenu
:
'
#viewport #left-menu
'
,
rightMenu
:
'
#viewport #right-menu
'
};
Common
.
localStorage
.
setId
(
'
table
'
);
...
...
@@ -1774,6 +1777,7 @@ define([
if
(
arr
.
length
>
0
)
this
.
updatePluginsList
({
autoStartGuid
:
plugins
.
autoStartGuid
,
url
:
plugins
.
url
,
pluginsData
:
arr
});
...
...
@@ -1832,8 +1836,11 @@ define([
this
.
appOptions
.
pluginsPath
=
''
;
this
.
appOptions
.
canPlugins
=
false
;
}
if
(
this
.
appOptions
.
canPlugins
)
if
(
this
.
appOptions
.
canPlugins
)
{
this
.
getApplication
().
getController
(
'
Common.Controllers.Plugins
'
).
setMode
(
this
.
appOptions
);
if
(
plugins
.
autoStartGuid
)
this
.
api
.
asc_pluginRun
(
plugins
.
autoStartGuid
,
0
,
''
);
}
this
.
getApplication
().
getController
(
'
LeftMenu
'
).
enablePlugins
();
},
...
...
apps/spreadsheeteditor/main/app/view/LeftMenu.js
View file @
4dd21ea5
...
...
@@ -294,7 +294,7 @@ define([
showMenu
:
function
(
menu
)
{
var
re
=
/^
(\w
+
)
:
?(\w
*
)
$/
.
exec
(
menu
);
if
(
re
[
1
]
==
'
file
'
)
{
if
(
re
[
1
]
==
'
file
'
&&
this
.
btnFile
.
isVisible
()
)
{
if
(
!
this
.
btnFile
.
pressed
)
{
this
.
btnFile
.
toggle
(
true
);
this
.
btnFile
.
$el
.
focus
();
...
...
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