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
b89d8f35
Commit
b89d8f35
authored
Dec 05, 2016
by
Julia Radzhabova
Committed by
GitHub
Dec 05, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #46 from ONLYOFFICE/hotfix/v4.2.1
Hotfix/v4.2.1
parents
33818c18
dd1a5317
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
13 deletions
+17
-13
apps/common/main/lib/view/ExternalDiagramEditor.js
apps/common/main/lib/view/ExternalDiagramEditor.js
+1
-1
apps/common/main/resources/less/buttons.less
apps/common/main/resources/less/buttons.less
+4
-4
apps/spreadsheeteditor/main/app/controller/Main.js
apps/spreadsheeteditor/main/app/controller/Main.js
+8
-2
apps/spreadsheeteditor/main/app/view/ChartSettingsDlg.js
apps/spreadsheeteditor/main/app/view/ChartSettingsDlg.js
+4
-6
No files found.
apps/common/main/lib/view/ExternalDiagramEditor.js
View file @
b89d8f35
...
...
@@ -62,7 +62,7 @@ define([
'
<div class="separator horizontal"/>
'
,
'
<div class="footer" style="text-align: center;">
'
,
'
<button id="id-btn-diagram-editor-apply" class="btn normal dlg-btn primary custom" result="ok" style="margin-right: 10px;">
'
+
this
.
textSave
+
'
</button>
'
,
'
<button id="id-btn-diagram-editor-cancel" class="btn normal dlg-btn
disabled
" result="cancel">
'
+
this
.
textClose
+
'
</button>
'
,
'
<button id="id-btn-diagram-editor-cancel" class="btn normal dlg-btn" result="cancel">
'
+
this
.
textClose
+
'
</button>
'
,
'
</div>
'
].
join
(
''
);
...
...
apps/common/main/resources/less/buttons.less
View file @
b89d8f35
...
...
@@ -454,8 +454,8 @@
color: @gray-deep;
background-color: @secondary;
&:hover,
&.hover {
&:hover
:not(.disabled)
,
&.hover
:not(.disabled)
{
background-color: @secondary-hover;
}
...
...
@@ -463,8 +463,8 @@
color: #fff;
background-color: @primary;
&:hover,
&.hover {
&:hover
:not(.disabled)
,
&.hover
:not(.disabled)
{
background-color: @primary-hover;
}
}
...
...
apps/spreadsheeteditor/main/app/controller/Main.js
View file @
b89d8f35
...
...
@@ -158,7 +158,7 @@ define([
var
me
=
this
;
// Syncronize focus with api
$
(
document
.
body
).
on
(
'
focus
'
,
'
input, textarea:not(#ce-cell-content)
'
,
function
(
e
)
{
if
(
this
.
isAppDisabled
===
true
)
return
;
if
(
me
.
isAppDisabled
===
true
)
return
;
if
(
e
&&
e
.
target
&&
!
/area_id/
.
test
(
e
.
target
.
id
))
{
if
(
/msg-reply/
.
test
(
e
.
target
.
className
))
...
...
@@ -167,7 +167,8 @@ define([
});
$
(
document
.
body
).
on
(
'
blur
'
,
'
input, textarea
'
,
function
(
e
)
{
if
(
this
.
isAppDisabled
===
true
)
return
;
if
(
me
.
isAppDisabled
===
true
||
me
.
isFrameClosed
)
return
;
if
(
!
me
.
isModalShowed
&&
!
(
me
.
loadMask
&&
me
.
loadMask
.
isVisible
()))
{
if
(
!
e
.
relatedTarget
||
!
/area_id/
.
test
(
e
.
target
.
id
)
&&
$
(
e
.
target
).
parent
().
find
(
e
.
relatedTarget
).
length
<
1
/* Check if focus in combobox goes from input to it's menu button or menu items */
...
...
@@ -284,6 +285,8 @@ define([
if
(
this
.
appOptions
.
location
==
'
us
'
||
this
.
appOptions
.
location
==
'
ca
'
)
Common
.
Utils
.
Metric
.
setDefaultMetric
(
Common
.
Utils
.
Metric
.
c_MetricUnits
.
inch
);
this
.
isFrameClosed
=
(
this
.
appOptions
.
isEditDiagram
||
this
.
appOptions
.
isEditMailMerge
);
},
loadDocument
:
function
(
data
)
{
...
...
@@ -1617,6 +1620,7 @@ define([
break
;
case
'
queryClose
'
:
if
(
$
(
'
body .asc-window:visible
'
).
length
===
0
)
{
this
.
isFrameClosed
=
true
;
this
.
api
.
asc_closeCellEditor
();
Common
.
Gateway
.
internalMessage
(
'
canClose
'
,
{
mr
:
data
.
data
.
mr
,
answer
:
true
});
}
...
...
@@ -1634,6 +1638,7 @@ define([
setChartData
:
function
(
chart
)
{
if
(
typeof
chart
===
'
object
'
&&
this
.
api
)
{
this
.
api
.
asc_addChartDrawingObject
(
chart
);
this
.
isFrameClosed
=
false
;
}
},
...
...
@@ -1656,6 +1661,7 @@ define([
setMergeData
:
function
(
merge
)
{
if
(
typeof
merge
===
'
object
'
&&
this
.
api
)
{
this
.
api
.
asc_setData
(
merge
);
this
.
isFrameClosed
=
false
;
}
},
...
...
apps/spreadsheeteditor/main/app/view/ChartSettingsDlg.js
View file @
b89d8f35
...
...
@@ -1263,8 +1263,6 @@ define([ 'text!spreadsheeteditor/main/app/template/ChartSettingsDlg.template'
var
changed
=
false
,
value
=
this
.
cmbEmptyCells
.
getValue
();
if
(
rawData
.
type
!==
Asc
.
c_oAscSparklineType
.
Line
&&
this
.
_arrEmptyCells
.
length
>
2
)
{
if
(
value
==
Asc
.
c_oAscEDispBlanksAs
.
Span
)
value
=
Asc
.
c_oAscEDispBlanksAs
.
Gap
;
this
.
_arrEmptyCells
.
pop
();
changed
=
true
;
}
else
if
(
rawData
.
type
==
Asc
.
c_oAscSparklineType
.
Line
&&
this
.
_arrEmptyCells
.
length
<
3
)
{
...
...
@@ -1273,9 +1271,7 @@ define([ 'text!spreadsheeteditor/main/app/template/ChartSettingsDlg.template'
}
if
(
changed
)
{
this
.
cmbEmptyCells
.
setData
(
this
.
_arrEmptyCells
);
this
.
cmbEmptyCells
.
setValue
(
value
);
if
(
this
.
_changedProps
)
this
.
_changedProps
.
asc_setDisplayEmpty
(
value
);
this
.
cmbEmptyCells
.
setValue
((
rawData
.
type
!==
Asc
.
c_oAscSparklineType
.
Line
&&
value
==
Asc
.
c_oAscEDispBlanksAs
.
Span
)
?
this
.
textEmptyLine
:
value
);
}
this
.
updateSparkStyles
(
this
.
chartSettings
.
asc_getStyles
());
...
...
@@ -1360,7 +1356,9 @@ define([ 'text!spreadsheeteditor/main/app/template/ChartSettingsDlg.template'
if
(
this
.
_state
.
SparkType
!==
Asc
.
c_oAscSparklineType
.
Line
)
this
.
_arrEmptyCells
.
pop
();
this
.
cmbEmptyCells
.
setData
(
this
.
_arrEmptyCells
);
this
.
cmbEmptyCells
.
setValue
(
props
.
asc_getDisplayEmpty
());
var
value
=
props
.
asc_getDisplayEmpty
();
this
.
cmbEmptyCells
.
setValue
((
this
.
_state
.
SparkType
!==
Asc
.
c_oAscSparklineType
.
Line
&&
value
==
Asc
.
c_oAscEDispBlanksAs
.
Span
)
?
this
.
textEmptyLine
:
value
);
this
.
chShowEmpty
.
setValue
(
props
.
asc_getDisplayHidden
(),
true
);
this
.
chShowAxis
.
setValue
(
props
.
asc_getDisplayXAxis
(),
true
);
...
...
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