[de mobile] change metric text
This commit is contained in:
parent
02a9aad05d
commit
0f043e0faa
|
@ -171,7 +171,7 @@ define([
|
||||||
|
|
||||||
initSettings: function (pageId) {
|
initSettings: function (pageId) {
|
||||||
var me = this;
|
var me = this;
|
||||||
|
_metricText = Common.Utils.Metric.getMetricName(Common.Utils.Metric.getCurrentMetric());
|
||||||
if (_chartObject) {
|
if (_chartObject) {
|
||||||
if (pageId == '#edit-chart-wrap') {
|
if (pageId == '#edit-chart-wrap') {
|
||||||
me._initWrapView();
|
me._initWrapView();
|
||||||
|
@ -222,6 +222,7 @@ define([
|
||||||
paletteFillColor = me.getView('EditChart').paletteFillColor,
|
paletteFillColor = me.getView('EditChart').paletteFillColor,
|
||||||
paletteBorderColor = me.getView('EditChart').paletteBorderColor;
|
paletteBorderColor = me.getView('EditChart').paletteBorderColor;
|
||||||
|
|
||||||
|
|
||||||
// Style
|
// Style
|
||||||
|
|
||||||
var type = chartProperties.getType();
|
var type = chartProperties.getType();
|
||||||
|
@ -426,6 +427,7 @@ define([
|
||||||
properties = new Asc.asc_CImgProperty(),
|
properties = new Asc.asc_CImgProperty(),
|
||||||
paddings = new Asc.asc_CPaddings();
|
paddings = new Asc.asc_CPaddings();
|
||||||
|
|
||||||
|
|
||||||
$('.chart-wrap .distance .item-after').text(value + ' ' + _metricText);
|
$('.chart-wrap .distance .item-after').text(value + ' ' + _metricText);
|
||||||
|
|
||||||
value = Common.Utils.Metric.fnRecalcToMM(parseInt(value));
|
value = Common.Utils.Metric.fnRecalcToMM(parseInt(value));
|
||||||
|
|
|
@ -147,6 +147,7 @@ define([
|
||||||
me._initWrapView();
|
me._initWrapView();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
_metricText = Common.Utils.Metric.getMetricName(Common.Utils.Metric.getCurrentMetric());
|
||||||
},
|
},
|
||||||
|
|
||||||
_initWrapView: function() {
|
_initWrapView: function() {
|
||||||
|
|
|
@ -129,6 +129,7 @@ define([
|
||||||
initSettings: function () {
|
initSettings: function () {
|
||||||
var me = this;
|
var me = this;
|
||||||
|
|
||||||
|
metricText = Common.Utils.Metric.getMetricName(Common.Utils.Metric.getCurrentMetric());
|
||||||
var selectedElements = me.api.getSelectedElements();
|
var selectedElements = me.api.getSelectedElements();
|
||||||
if (selectedElements && _.isArray(selectedElements)) {
|
if (selectedElements && _.isArray(selectedElements)) {
|
||||||
for (var i = selectedElements.length - 1; i >= 0; i--) {
|
for (var i = selectedElements.length - 1; i >= 0; i--) {
|
||||||
|
|
|
@ -181,6 +181,7 @@ define([
|
||||||
me.getView('EditShape').isShapeCanFill = _shapeObject.get_ShapeProperties().get_CanFill();
|
me.getView('EditShape').isShapeCanFill = _shapeObject.get_ShapeProperties().get_CanFill();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
_metricText = Common.Utils.Metric.getMetricName(Common.Utils.Metric.getCurrentMetric());
|
||||||
},
|
},
|
||||||
|
|
||||||
_initWrapView: function() {
|
_initWrapView: function() {
|
||||||
|
|
|
@ -185,6 +185,7 @@ define([
|
||||||
|
|
||||||
initSettings: function (pageId) {
|
initSettings: function (pageId) {
|
||||||
var me = this;
|
var me = this;
|
||||||
|
_metricText = Common.Utils.Metric.getMetricName(Common.Utils.Metric.getCurrentMetric());
|
||||||
|
|
||||||
if (_tableObject) {
|
if (_tableObject) {
|
||||||
if (pageId == '#edit-table-wrap') {
|
if (pageId == '#edit-table-wrap') {
|
||||||
|
|
Loading…
Reference in a new issue