From 76d32b9a4136ce07931b42abf4067757a8b07670 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Fri, 29 Sep 2017 16:54:22 +0200 Subject: [PATCH] Bayadere bicolor --- .../antadissimulator/views/js/doublecube-bicolor.js | 13 +++++++++---- .../hook/productbloc/doublecube-bicolor.tpl | 8 ++++---- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/www/modules/antadissimulator/views/js/doublecube-bicolor.js b/www/modules/antadissimulator/views/js/doublecube-bicolor.js index c9a7629e..043647b2 100644 --- a/www/modules/antadissimulator/views/js/doublecube-bicolor.js +++ b/www/modules/antadissimulator/views/js/doublecube-bicolor.js @@ -176,10 +176,15 @@ function initFaces() $('.chocos-holder .flipper .front').html($('#temp-bayadere .bayaface').clone()) $('.chocos-holder .flipper .back').html($('#temp-bayadere .bayaface').clone()) - $('.bayaface .col1').addClass('b-'+color1) - $('.bayaface .col2').addClass('b-'+color2) - $('.bayaface .col3').addClass('b-'+color1) - $('.bayaface .col4').addClass('b-'+color2) + $('.bayaface #col1').attr('class', ''); + $('.bayaface #col2').attr('class', ''); + $('.bayaface #col3').attr('class', ''); + $('.bayaface #col4').attr('class', ''); + + $('.bayaface #col1').addClass('colbaya col1').addClass('b-'+color1); + $('.bayaface #col2').addClass('colbaya col2').addClass('b-'+color2); + $('.bayaface #col3').addClass('colbaya col3').addClass('b-'+color1); + $('.bayaface #col4').addClass('colbaya col4').addClass('b-'+color2); // DC $('#custom_elmts .noms-holder').clone().appendTo(".container-db .db-cube1 .front") diff --git a/www/modules/antadissimulator/views/templates/hook/productbloc/doublecube-bicolor.tpl b/www/modules/antadissimulator/views/templates/hook/productbloc/doublecube-bicolor.tpl index efef22a5..ae741d51 100644 --- a/www/modules/antadissimulator/views/templates/hook/productbloc/doublecube-bicolor.tpl +++ b/www/modules/antadissimulator/views/templates/hook/productbloc/doublecube-bicolor.tpl @@ -191,10 +191,10 @@
-
-
-
-
+
+
+
+