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
9569f094
Commit
9569f094
authored
Apr 07, 2016
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
c_oAscDocumentUnits - > Asc.c_oAscDocumentUnits
parent
e054f11c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
apps/documenteditor/main/app/controller/Main.js
apps/documenteditor/main/app/controller/Main.js
+2
-2
apps/presentationeditor/main/app/controller/Main.js
apps/presentationeditor/main/app/controller/Main.js
+2
-2
No files found.
apps/documenteditor/main/app/controller/Main.js
View file @
9569f094
...
...
@@ -1050,7 +1050,7 @@ define([
var
value
=
Common
.
localStorage
.
getItem
(
'
de-settings-unit
'
);
value
=
(
value
!==
null
)
?
parseInt
(
value
)
:
Common
.
Utils
.
Metric
.
c_MetricUnits
.
cm
;
Common
.
Utils
.
Metric
.
setCurrentMetric
(
value
);
me
.
api
.
asc_SetDocumentUnits
((
value
==
Common
.
Utils
.
Metric
.
c_MetricUnits
.
inch
)
?
c_oAscDocumentUnits
.
Inch
:
((
value
==
Common
.
Utils
.
Metric
.
c_MetricUnits
.
pt
)
?
c_oAscDocumentUnits
.
Point
:
c_oAscDocumentUnits
.
Millimeter
));
me
.
api
.
asc_SetDocumentUnits
((
value
==
Common
.
Utils
.
Metric
.
c_MetricUnits
.
inch
)
?
Asc
.
c_oAscDocumentUnits
.
Inch
:
((
value
==
Common
.
Utils
.
Metric
.
c_MetricUnits
.
pt
)
?
Asc
.
c_oAscDocumentUnits
.
Point
:
Asc
.
c_oAscDocumentUnits
.
Millimeter
));
value
=
Common
.
localStorage
.
getItem
(
'
de-hidden-rulers
'
);
me
.
api
.
asc_SetViewRulers
(
value
===
null
||
parseInt
(
value
)
===
0
);
...
...
@@ -1589,7 +1589,7 @@ define([
var
value
=
Common
.
localStorage
.
getItem
(
"
de-settings-unit
"
);
value
=
(
value
!==
null
)
?
parseInt
(
value
)
:
Common
.
Utils
.
Metric
.
c_MetricUnits
.
cm
;
Common
.
Utils
.
Metric
.
setCurrentMetric
(
value
);
this
.
api
.
asc_SetDocumentUnits
((
value
==
Common
.
Utils
.
Metric
.
c_MetricUnits
.
inch
)
?
c_oAscDocumentUnits
.
Inch
:
((
value
==
Common
.
Utils
.
Metric
.
c_MetricUnits
.
pt
)
?
c_oAscDocumentUnits
.
Point
:
c_oAscDocumentUnits
.
Millimeter
));
this
.
api
.
asc_SetDocumentUnits
((
value
==
Common
.
Utils
.
Metric
.
c_MetricUnits
.
inch
)
?
Asc
.
c_oAscDocumentUnits
.
Inch
:
((
value
==
Common
.
Utils
.
Metric
.
c_MetricUnits
.
pt
)
?
Asc
.
c_oAscDocumentUnits
.
Point
:
Asc
.
c_oAscDocumentUnits
.
Millimeter
));
this
.
getApplication
().
getController
(
'
RightMenu
'
).
updateMetricUnit
();
this
.
getApplication
().
getController
(
'
Toolbar
'
).
getView
(
'
Toolbar
'
).
updateMetricUnit
();
},
...
...
apps/presentationeditor/main/app/controller/Main.js
View file @
9569f094
...
...
@@ -818,7 +818,7 @@ define([
var
value
=
Common
.
localStorage
.
getItem
(
'
pe-settings-unit
'
);
value
=
(
value
!==
null
)
?
parseInt
(
value
)
:
Common
.
Utils
.
Metric
.
c_MetricUnits
.
cm
;
Common
.
Utils
.
Metric
.
setCurrentMetric
(
value
);
me
.
api
.
asc_SetDocumentUnits
((
value
==
Common
.
Utils
.
Metric
.
c_MetricUnits
.
inch
)
?
c_oAscDocumentUnits
.
Inch
:
((
value
==
Common
.
Utils
.
Metric
.
c_MetricUnits
.
pt
)
?
c_oAscDocumentUnits
.
Point
:
c_oAscDocumentUnits
.
Millimeter
));
me
.
api
.
asc_SetDocumentUnits
((
value
==
Common
.
Utils
.
Metric
.
c_MetricUnits
.
inch
)
?
Asc
.
c_oAscDocumentUnits
.
Inch
:
((
value
==
Common
.
Utils
.
Metric
.
c_MetricUnits
.
pt
)
?
Asc
.
c_oAscDocumentUnits
.
Point
:
Asc
.
c_oAscDocumentUnits
.
Millimeter
));
value
=
Common
.
localStorage
.
getItem
(
'
pe-hidden-rulers
'
);
if
(
me
.
api
.
asc_SetViewRulers
)
me
.
api
.
asc_SetViewRulers
(
value
===
null
||
parseInt
(
value
)
===
0
);
...
...
@@ -1260,7 +1260,7 @@ define([
var
value
=
Common
.
localStorage
.
getItem
(
"
pe-settings-unit
"
);
value
=
(
value
!==
null
)
?
parseInt
(
value
)
:
Common
.
Utils
.
Metric
.
c_MetricUnits
.
cm
;
Common
.
Utils
.
Metric
.
setCurrentMetric
(
value
);
this
.
api
.
asc_SetDocumentUnits
((
value
==
Common
.
Utils
.
Metric
.
c_MetricUnits
.
inch
)
?
c_oAscDocumentUnits
.
Inch
:
((
value
==
Common
.
Utils
.
Metric
.
c_MetricUnits
.
pt
)
?
c_oAscDocumentUnits
.
Point
:
c_oAscDocumentUnits
.
Millimeter
));
this
.
api
.
asc_SetDocumentUnits
((
value
==
Common
.
Utils
.
Metric
.
c_MetricUnits
.
inch
)
?
Asc
.
c_oAscDocumentUnits
.
Inch
:
((
value
==
Common
.
Utils
.
Metric
.
c_MetricUnits
.
pt
)
?
Asc
.
c_oAscDocumentUnits
.
Point
:
Asc
.
c_oAscDocumentUnits
.
Millimeter
));
this
.
getApplication
().
getController
(
'
RightMenu
'
).
updateMetricUnit
();
},
...
...
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