mobile-wizard: use mobile colorpickers for gradient
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com> Change-Id: Ic5ef466713cec184328d945424affb0d1a2a3b30
This commit is contained in:
parent
9d86193972
commit
4cb9d8cd33
1 changed files with 10 additions and 0 deletions
|
@ -660,7 +660,17 @@ L.Control.MobileWizardBuilder = L.Control.JSDialogBuilder.extend({
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// apply needed modifications for mobile
|
||||||
|
_modifySidebarNodes: function(data) {
|
||||||
|
for (var i in data) {
|
||||||
|
if ((data[i].id === 'fillgrad1' || data[i].id === 'fillgrad2') && data[i].type === 'menubutton')
|
||||||
|
data[i].type = 'colorlistbox';
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
build: function(parent, data) {
|
build: function(parent, data) {
|
||||||
|
this._modifySidebarNodes(data);
|
||||||
|
|
||||||
for (var childIndex in data) {
|
for (var childIndex in data) {
|
||||||
if (!data[childIndex])
|
if (!data[childIndex])
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue