[mobile] Fix bug 43877
This commit is contained in:
parent
8eb9904a72
commit
6e8a5309b1
|
@ -355,20 +355,21 @@ define([
|
||||||
onSendThemeColorSchemes: function (schemas) {
|
onSendThemeColorSchemes: function (schemas) {
|
||||||
templateInsert = "";
|
templateInsert = "";
|
||||||
_.each(schemas, function (schema, index) {
|
_.each(schemas, function (schema, index) {
|
||||||
var colors = schema.get_colors();//schema.colors;
|
var colors = schema.get_colors(), //schema.colors;
|
||||||
templateInsert = templateInsert + "<a class='color-schemes-menu item-link no-indicator'><input type='hidden' value='" + index + "'><div class='item-content'><div class='item-inner'><span class='color-schema-block'>";
|
name = schema.get_name();
|
||||||
|
templateInsert = templateInsert + "<a class='color-schemes-menu item-link no-indicator'><input type='hidden' value='" + name + "'><div class='item-content'><div class='item-inner'><span class='color-schema-block'>";
|
||||||
for (var j = 2; j < 7; j++) {
|
for (var j = 2; j < 7; j++) {
|
||||||
var clr = '#' + Common.Utils.ThemeColor.getHexColor(colors[j].get_r(), colors[j].get_g(), colors[j].get_b());
|
var clr = '#' + Common.Utils.ThemeColor.getHexColor(colors[j].get_r(), colors[j].get_g(), colors[j].get_b());
|
||||||
templateInsert = templateInsert + "<span class='color' style='background: " + clr + ";'></span>"
|
templateInsert = templateInsert + "<span class='color' style='background: " + clr + ";'></span>"
|
||||||
}
|
}
|
||||||
templateInsert = templateInsert + "</span><span class='text'>" + schema.get_name() + "</span></div></div></a>";
|
templateInsert = templateInsert + "</span><span class='text'>" + name + "</span></div></div></a>";
|
||||||
}, this);
|
}, this);
|
||||||
},
|
},
|
||||||
|
|
||||||
onColorSchemaClick: function(event) {
|
onColorSchemaClick: function(event) {
|
||||||
if (this.api) {
|
if (this.api) {
|
||||||
var ind = $(event.currentTarget).children('input').val();
|
var name = $(event.currentTarget).children('input').val();
|
||||||
this.api.ChangeColorScheme(ind);
|
this.api.ChangeColorScheme(name);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -250,20 +250,21 @@ define([
|
||||||
onSendThemeColorSchemes: function (schemas) {
|
onSendThemeColorSchemes: function (schemas) {
|
||||||
templateInsert = "";
|
templateInsert = "";
|
||||||
_.each(schemas, function (schema, index) {
|
_.each(schemas, function (schema, index) {
|
||||||
var colors = schema.get_colors();//schema.colors;
|
var colors = schema.get_colors(),//schema.colors;
|
||||||
templateInsert = templateInsert + "<a class='color-schemes-menu item-link no-indicator'><input type='hidden' value='" + index + "'><div class='item-content'><div class='item-inner'><span class='color-schema-block'>";
|
name = schema.get_name();
|
||||||
|
templateInsert = templateInsert + "<a class='color-schemes-menu item-link no-indicator'><input type='hidden' value='" + name + "'><div class='item-content'><div class='item-inner'><span class='color-schema-block'>";
|
||||||
for (var j = 2; j < 7; j++) {
|
for (var j = 2; j < 7; j++) {
|
||||||
var clr = '#' + Common.Utils.ThemeColor.getHexColor(colors[j].get_r(), colors[j].get_g(), colors[j].get_b());
|
var clr = '#' + Common.Utils.ThemeColor.getHexColor(colors[j].get_r(), colors[j].get_g(), colors[j].get_b());
|
||||||
templateInsert = templateInsert + "<span class='color' style='background: " + clr + ";'></span>"
|
templateInsert = templateInsert + "<span class='color' style='background: " + clr + ";'></span>"
|
||||||
}
|
}
|
||||||
templateInsert = templateInsert + "</span><span class='text'>" + schema.get_name() + "</span></div></div></a>";
|
templateInsert = templateInsert + "</span><span class='text'>" + name + "</span></div></div></a>";
|
||||||
}, this);
|
}, this);
|
||||||
},
|
},
|
||||||
|
|
||||||
onColorSchemaClick: function (event) {
|
onColorSchemaClick: function (event) {
|
||||||
if (this.api) {
|
if (this.api) {
|
||||||
var ind = $(event.currentTarget).children('input').val();
|
var name = $(event.currentTarget).children('input').val();
|
||||||
this.api.ChangeColorScheme(ind);
|
this.api.ChangeColorScheme(name);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -511,20 +511,21 @@ define([
|
||||||
onSendThemeColorSchemes: function (schemas) {
|
onSendThemeColorSchemes: function (schemas) {
|
||||||
templateInsert = "";
|
templateInsert = "";
|
||||||
_.each(schemas, function (schema, index) {
|
_.each(schemas, function (schema, index) {
|
||||||
var colors = schema.get_colors();//schema.colors;
|
var colors = schema.get_colors(),//schema.colors;
|
||||||
templateInsert = templateInsert + "<a class='color-schemes-menu item-link no-indicator'><input type='hidden' value='" + index + "'><div class='item-content'><div class='item-inner'><span class='color-schema-block'>";
|
name = schema.get_name();
|
||||||
|
templateInsert = templateInsert + "<a class='color-schemes-menu item-link no-indicator'><input type='hidden' value='" + name + "'><div class='item-content'><div class='item-inner'><span class='color-schema-block'>";
|
||||||
for (var j = 2; j < 7; j++) {
|
for (var j = 2; j < 7; j++) {
|
||||||
var clr = '#' + Common.Utils.ThemeColor.getHexColor(colors[j].get_r(), colors[j].get_g(), colors[j].get_b());
|
var clr = '#' + Common.Utils.ThemeColor.getHexColor(colors[j].get_r(), colors[j].get_g(), colors[j].get_b());
|
||||||
templateInsert = templateInsert + "<span class='color' style='background: " + clr + ";'></span>"
|
templateInsert = templateInsert + "<span class='color' style='background: " + clr + ";'></span>"
|
||||||
}
|
}
|
||||||
templateInsert = templateInsert + "</span><span class='text'>" + schema.get_name() + "</span></div></div></a>";
|
templateInsert = templateInsert + "</span><span class='text'>" + name + "</span></div></div></a>";
|
||||||
}, this);
|
}, this);
|
||||||
},
|
},
|
||||||
|
|
||||||
onColorSchemaClick: function(event) {
|
onColorSchemaClick: function(event) {
|
||||||
if (this.api) {
|
if (this.api) {
|
||||||
var ind = $(event.currentTarget).children('input').val();
|
var name = $(event.currentTarget).children('input').val();
|
||||||
this.api.asc_ChangeColorScheme(ind);
|
this.api.asc_ChangeColorScheme(name);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue