From b04f4c38a0c7a525707063d2f7f9800fe33d0f4e Mon Sep 17 00:00:00 2001 From: Alexander Yuzhin Date: Mon, 20 Mar 2017 17:03:22 +0300 Subject: [PATCH] [SE mobile] Fix bug 34381, bug 34382, bug 34383 --- apps/common/mobile/lib/component/ThemeColorPalette.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/common/mobile/lib/component/ThemeColorPalette.js b/apps/common/mobile/lib/component/ThemeColorPalette.js index 9b4070bd4..56d08a7ee 100644 --- a/apps/common/mobile/lib/component/ThemeColorPalette.js +++ b/apps/common/mobile/lib/component/ThemeColorPalette.js @@ -120,6 +120,11 @@ define([ row = -1, standartColors = Common.Utils.ThemeColor.getStandartColors(); + // Disable duplicate + if ($(me.el).find('.list-block.color-palette').length > 0) { + return + } + _.each(Common.Utils.ThemeColor.getEffectColors(), function(effect, index) { if (0 == index % me.options.themecolors) { themeColors.push([]);