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
42517720
Commit
42517720
authored
Mar 13, 2017
by
Alexander Yuzhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
https://github.com/ONLYOFFICE/web-apps
into develop
parents
c18bff61
497b5313
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
47 additions
and
17 deletions
+47
-17
apps/api/documents/api.js
apps/api/documents/api.js
+4
-3
apps/documenteditor/main/app/controller/Main.js
apps/documenteditor/main/app/controller/Main.js
+6
-2
apps/presentationeditor/main/app/controller/Main.js
apps/presentationeditor/main/app/controller/Main.js
+6
-2
apps/spreadsheeteditor/main/app/controller/DocumentHolder.js
apps/spreadsheeteditor/main/app/controller/DocumentHolder.js
+4
-0
apps/spreadsheeteditor/main/app/controller/Main.js
apps/spreadsheeteditor/main/app/controller/Main.js
+7
-3
apps/spreadsheeteditor/main/app/controller/Toolbar.js
apps/spreadsheeteditor/main/app/controller/Toolbar.js
+12
-0
apps/spreadsheeteditor/mobile/app/controller/edit/EditText.js
.../spreadsheeteditor/mobile/app/controller/edit/EditText.js
+2
-3
apps/spreadsheeteditor/mobile/app/template/EditChart.template
.../spreadsheeteditor/mobile/app/template/EditChart.template
+3
-3
apps/spreadsheeteditor/mobile/app/template/EditText.template
apps/spreadsheeteditor/mobile/app/template/EditText.template
+1
-1
apps/spreadsheeteditor/mobile/app/view/edit/EditChart.js
apps/spreadsheeteditor/mobile/app/view/edit/EditChart.js
+1
-0
apps/spreadsheeteditor/mobile/locale/en.json
apps/spreadsheeteditor/mobile/locale/en.json
+1
-0
No files found.
apps/api/documents/api.js
View file @
42517720
...
...
@@ -96,7 +96,7 @@
info: 'Some info',
logo: ''
},
about:
fals
e,
about:
tru
e,
feedback: {
visible: false,
url: http://...
...
...
@@ -521,7 +521,8 @@
var
data
=
{
type
:
evt
.
type
,
x
:
evt
.
x
-
r
.
left
,
y
:
evt
.
y
-
r
.
top
y
:
evt
.
y
-
r
.
top
,
event
:
evt
};
_sendCommand
({
...
...
@@ -568,7 +569,7 @@
lang
:
'
en
'
,
canCoAuthoring
:
true
,
customization
:
{
about
:
fals
e
,
about
:
tru
e
,
feedback
:
false
}
}
...
...
apps/documenteditor/main/app/controller/Main.js
View file @
42517720
...
...
@@ -1479,8 +1479,12 @@ define([
hidePreloader
:
function
()
{
if
(
!
this
.
_state
.
customizationDone
)
{
this
.
_state
.
customizationDone
=
true
;
if
(
this
.
appOptions
.
customization
&&
!
this
.
appOptions
.
isDesktopApp
)
this
.
appOptions
.
customization
.
about
=
true
;
if
(
this
.
appOptions
.
customization
)
{
if
(
this
.
appOptions
.
isDesktopApp
)
this
.
appOptions
.
customization
.
about
=
false
;
else
if
(
!
this
.
appOptions
.
canBrandingExt
)
this
.
appOptions
.
customization
.
about
=
true
;
}
Common
.
Utils
.
applyCustomization
(
this
.
appOptions
.
customization
,
mapCustomizationElements
);
if
(
this
.
appOptions
.
canBrandingExt
)
{
Common
.
Utils
.
applyCustomization
(
this
.
appOptions
.
customization
,
mapCustomizationExtElements
);
...
...
apps/presentationeditor/main/app/controller/Main.js
View file @
42517720
...
...
@@ -1232,8 +1232,12 @@ define([
hidePreloader
:
function
()
{
if
(
!
this
.
_state
.
customizationDone
)
{
this
.
_state
.
customizationDone
=
true
;
if
(
this
.
appOptions
.
customization
&&
!
this
.
appOptions
.
isDesktopApp
)
this
.
appOptions
.
customization
.
about
=
true
;
if
(
this
.
appOptions
.
customization
)
{
if
(
this
.
appOptions
.
isDesktopApp
)
this
.
appOptions
.
customization
.
about
=
false
;
else
if
(
!
this
.
appOptions
.
canBrandingExt
)
this
.
appOptions
.
customization
.
about
=
true
;
}
Common
.
Utils
.
applyCustomization
(
this
.
appOptions
.
customization
,
mapCustomizationElements
);
if
(
this
.
appOptions
.
canBrandingExt
)
{
Common
.
Utils
.
applyCustomization
(
this
.
appOptions
.
customization
,
mapCustomizationExtElements
);
...
...
apps/spreadsheeteditor/main/app/controller/DocumentHolder.js
View file @
42517720
...
...
@@ -695,12 +695,15 @@ define([
(
new
SSE
.
Views
.
ChartSettingsDlg
(
{
chartSettings
:
props
,
imageSettings
:
item
.
chartInfo
,
isChart
:
true
,
api
:
me
.
api
,
handler
:
function
(
result
,
value
)
{
if
(
result
==
'
ok
'
)
{
if
(
me
.
api
)
{
me
.
api
.
asc_editChartDrawingObject
(
value
.
chartSettings
);
if
(
value
.
imageSettings
)
me
.
api
.
asc_setGraphicObjectProps
(
value
.
imageSettings
);
}
}
Common
.
NotificationCenter
.
trigger
(
'
edit:complete
'
,
me
);
...
...
@@ -1205,6 +1208,7 @@ define([
isshapemenu
=
true
;
}
}
else
if
(
elValue
.
asc_getChartProperties
()
)
{
documentHolder
.
mnuChartEdit
.
chartInfo
=
elValue
;
ischartmenu
=
true
;
has_chartprops
=
true
;
}
...
...
apps/spreadsheeteditor/main/app/controller/Main.js
View file @
42517720
...
...
@@ -363,7 +363,7 @@ define([
var
editor
=
document
.
getElementById
(
'
editor_sdk
'
);
if
(
editor
)
{
var
rect
=
editor
.
getBoundingClientRect
();
var
event
=
window
.
event
||
arguments
.
callee
.
caller
.
arguments
[
0
]
;
var
event
=
data
.
event
||
{}
;
this
.
api
.
asc_onMouseUp
(
event
,
data
.
x
-
rect
.
left
,
data
.
y
-
rect
.
top
);
}
}
...
...
@@ -1370,8 +1370,12 @@ define([
hidePreloader
:
function
()
{
if
(
!
this
.
_state
.
customizationDone
)
{
this
.
_state
.
customizationDone
=
true
;
if
(
this
.
appOptions
.
customization
&&
!
this
.
appOptions
.
isDesktopApp
)
this
.
appOptions
.
customization
.
about
=
true
;
if
(
this
.
appOptions
.
customization
)
{
if
(
this
.
appOptions
.
isDesktopApp
)
this
.
appOptions
.
customization
.
about
=
false
;
else
if
(
!
this
.
appOptions
.
canBrandingExt
)
this
.
appOptions
.
customization
.
about
=
true
;
}
Common
.
Utils
.
applyCustomization
(
this
.
appOptions
.
customization
,
mapCustomizationElements
);
if
(
this
.
appOptions
.
canBrandingExt
)
{
Common
.
Utils
.
applyCustomization
(
this
.
appOptions
.
customization
,
mapCustomizationExtElements
);
...
...
apps/spreadsheeteditor/main/app/controller/Toolbar.js
View file @
42517720
...
...
@@ -750,18 +750,30 @@ define([
var
win
,
props
;
if
(
me
.
api
){
props
=
me
.
api
.
asc_getChartObject
();
var
selectedObjects
=
me
.
api
.
asc_getGraphicObjectProps
(),
imageSettings
=
null
;
for
(
var
i
=
0
;
i
<
selectedObjects
.
length
;
i
++
)
{
if
(
selectedObjects
[
i
].
asc_getObjectType
()
==
Asc
.
c_oAscTypeSelectElement
.
Image
)
{
var
elValue
=
selectedObjects
[
i
].
asc_getObjectValue
();
if
(
elValue
.
asc_getChartProperties
()
)
imageSettings
=
elValue
;
}
}
if
(
props
)
{
var
ischartedit
=
(
me
.
toolbar
.
mode
.
isEditDiagram
||
info
.
asc_getFlags
().
asc_getSelectionType
()
==
Asc
.
c_oAscSelectionType
.
RangeChart
||
info
.
asc_getFlags
().
asc_getSelectionType
()
==
Asc
.
c_oAscSelectionType
.
RangeChartText
);
(
new
SSE
.
Views
.
ChartSettingsDlg
(
{
chartSettings
:
props
,
imageSettings
:
imageSettings
,
isChart
:
true
,
api
:
me
.
api
,
handler
:
function
(
result
,
value
)
{
if
(
result
==
'
ok
'
)
{
if
(
me
.
api
)
{
(
ischartedit
)
?
me
.
api
.
asc_editChartDrawingObject
(
value
.
chartSettings
)
:
me
.
api
.
asc_addChartDrawingObject
(
value
.
chartSettings
);
if
(
value
.
imageSettings
)
me
.
api
.
asc_setGraphicObjectProps
(
value
.
imageSettings
);
}
}
Common
.
NotificationCenter
.
trigger
(
'
edit:complete
'
,
me
.
toolbar
);
...
...
apps/spreadsheeteditor/mobile/app/controller/edit/EditText.js
View file @
42517720
...
...
@@ -151,8 +151,7 @@ define([
var
color
=
_fontInfo
.
asc_getColor
(),
clr
=
me
.
_sdkToThemeColor
(
color
);
$
(
'
#text-color .color-preview
'
).
css
(
'
background-color
'
,
'
#
'
+
(
_
.
isObject
(
clr
)
?
clr
.
color
:
clr
));
$
(
'
#font-color .color-preview
'
).
css
(
'
background-color
'
,
'
#
'
+
(
_
.
isObject
(
clr
)
?
clr
.
color
:
clr
));
// Align
$
(
'
#edit-text-align-block
'
).
css
(
'
display
'
,
(
_textIn
==
TextType
.
inShape
)
?
'
block
'
:
'
none
'
);
...
...
@@ -279,7 +278,7 @@ define([
onTextColor
:
function
(
palette
,
color
)
{
this
.
api
.
asc_setCellTextColor
(
Common
.
Utils
.
ThemeColor
.
getRgbColor
(
color
));
$
(
'
#
tex
t-color .color-preview
'
).
css
(
'
background-color
'
,
'
#
'
+
(
_
.
isObject
(
color
)
?
color
.
color
:
color
));
$
(
'
#
fon
t-color .color-preview
'
).
css
(
'
background-color
'
,
'
#
'
+
(
_
.
isObject
(
color
)
?
color
.
color
:
color
));
},
onHAlignChange
:
function
(
e
)
{
...
...
apps/spreadsheeteditor/mobile/app/template/EditChart.template
View file @
42517720
...
...
@@ -461,7 +461,7 @@
</li>
</ul>
</div>
<div class="content-block-title"><%= scope.textTickOptions %>
Tick Options
</div>
<div class="content-block-title"><%= scope.textTickOptions %></div>
<div class="list-block">
<ul>
<li>
...
...
@@ -480,7 +480,7 @@
<select name="vertical-axis-tick-minor"></select>
<div class="item-content">
<div class="item-inner">
<div class="item-title"><%= scope.textM
aj
orType %></div>
<div class="item-title"><%= scope.textM
in
orType %></div>
<div class="item-after"><%= scope.textNone %></div>
</div>
</div>
...
...
@@ -596,7 +596,7 @@
<select name="horizontal-axis-tick-minor"></select>
<div class="item-content">
<div class="item-inner">
<div class="item-title"><%= scope.textM
aj
orType %></div>
<div class="item-title"><%= scope.textM
in
orType %></div>
<div class="item-after"><%= scope.textNone %></div>
</div>
</div>
...
...
apps/spreadsheeteditor/mobile/app/template/EditText.template
View file @
42517720
...
...
@@ -24,7 +24,7 @@
</div>
</li>
<li>
<a id="
tex
t-color" class="item-link" data-page="#edit-text-color">
<a id="
fon
t-color" class="item-link" data-page="#edit-text-color">
<div class="item-content">
<% if (!android) { %><div class="item-media" style="padding-top: 0;"><i class="icon icon-text-color"><span class="color-preview"></span></i></div><% } %>
<div class="item-inner">
...
...
apps/spreadsheeteditor/mobile/app/view/edit/EditChart.js
View file @
42517720
...
...
@@ -259,6 +259,7 @@ define([
textValReverseOrder
:
'
Values in Reverse Order
'
,
textTickOptions
:
'
Tick Options
'
,
textMajorType
:
'
Major Type
'
,
textMinorType
:
'
Minor Type
'
,
textLabelOptions
:
'
Label Options
'
,
textLabelPos
:
'
Label Position
'
,
textAxisPosition
:
'
Axis Position
'
,
...
...
apps/spreadsheeteditor/mobile/locale/en.json
View file @
42517720
...
...
@@ -326,6 +326,7 @@
"SSE.Views.EditChart.textMajorType"
:
"Major Type"
,
"SSE.Views.EditChart.textMaxValue"
:
"Maximum Value"
,
"SSE.Views.EditChart.textMinor"
:
"Minor"
,
"SSE.Views.EditChart.textMinorType"
:
"Minor Type"
,
"SSE.Views.EditChart.textMinValue"
:
"Minimum Value"
,
"SSE.Views.EditChart.textNone"
:
"None"
,
"SSE.Views.EditChart.textNoOverlay"
:
"No Overlay"
,
...
...
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