]> _ Git - fluidbook-html5.git/commitdiff
wait #4320 @1.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 2 Mar 2021 16:22:43 +0000 (17:22 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 2 Mar 2021 16:22:43 +0000 (17:22 +0100)
js/libs/fluidbook/cart/fluidbook.cart.grandvision.js
style/cart/grandvision.less

index 587ad28afa2f9aee432ac58b0944d401614a864d..b47cc048c5070fa0630453146c927f6fe3e701b4 100644 (file)
@@ -247,6 +247,9 @@ FluidbookCartGrandVision.prototype = {
         this.fluidbook.menu.viewWrap(res, 'cart-grandvision-selection', 'data-max-width="1100" data-min-width="1100"');
 
         $("#grandvision-selection select").each(function () {
+            if ($this.filters[$(this).attr('name')] === undefined) {
+                return;
+            }
             var allValues = $this.filters[$(this).attr('name')].values;
             $this.filters[$(this).attr('name')].multiselect = $(this).multiSelect({
                 'noneText': $(this).data('label'),
@@ -399,8 +402,8 @@ FluidbookCartGrandVision.prototype = {
         }
 
         selection = '<div class="item" data-ref="' + item + '" data-brand="' + data.BRAND + '" data-category="' + data.Category + '" data-gender="' + data.Gender + '" data-material="' + data.Material + '">';
-        selection += '<div class="img" style="background-image: url(\'data/commerce/' + item + '-front.jpg\');">';
-        selection += '</div>';
+        selection += '<div class="img" style="background-image: url(\'data/commerce/' + item + '-front.jpg\');"></div>';
+        selection += '<div class="img-angle" style="background-image: url(\'data/commerce/' + item + '-angle.jpg\');"></div>';
         selection += '<div class="infos"><h3>' + data['Model Code'] + '</h3>';
         selection += '<p>' + infos.join(' | ') + '</p></div>';
         selection += '<div class="infos-box">' + item + ' | ' + data['Colour Description'] + '</div>';
@@ -478,7 +481,7 @@ FluidbookCartGrandVision.prototype = {
         var res = '<div class="box">';
         res += '<h3>' + b.name + '</h3>';
         res += '<div class="slots override-delete" id="grandvision-selection-slots">';
-        for (var i = 0; i < 10; i++) {
+        for (var i = 0; i < 16; i++) {
             var v = b.refs[i];
             if (v === undefined || v === null) {
                 res += this.slotHTML;
@@ -615,7 +618,7 @@ FluidbookCartGrandVision.prototype = {
                     refs.push($(this).data('ref'));
                 }
             });
-            $this.boxes[$this.boxIndex] = {name: $(this).find('h3').eq(0).text(), refs: refs.slice(0, 10)};
+            $this.boxes[$this.boxIndex] = {name: $(this).find('h3').eq(0).text(), refs: refs.slice(0, 16)};
         });
 
         this.fluidbook.cache.set('boxes', this.boxes);
index 6b8d909e253e58e908119c9f7ff29718a7e3cb8e..e710cb9b2dd122f8a342df1aadf4228e9aaacf4c 100644 (file)
@@ -1,4 +1,4 @@
-#iconList .svg-icon{
+#iconList .svg-icon {
   margin: 0 13px !important;
 }
 
     .dragging-box-item();
   }
 
-  .img {
+  .img, .img-angle {
     position: absolute;
     top: 0;
     left: 0;
     width: 200px;
-    height: 70px;
+    height: 83px;
     background-position: 50% 50%;
     background-size: cover;
   }
 
+  .img-angle {
+    display: none;
+  }
+
   h3, .infos {
     display: none;
   }
@@ -43,7 +47,7 @@
     margin-top: 5px;
     width: 100%;
     position: absolute;
-    bottom: 2px;
+    bottom: -9px;
     left: 0;
   }
 }
         margin-top: 17px;
 
         h3 {
-          margin-bottom: 15px;
+          margin-bottom: 0px;
         }
 
         .slots {
             padding: 15px;
             white-space: normal;
 
-            p{
+            p {
               display: none;
             }
 
             textarea {
               font-family: @font;
               text-align: center;
-              color:#000;
+              color: #000;
               font-size: 15px;
               border: 0;
               width: 100%;
           .item {
             position: relative;
             .common-box-item();
+
+            .img-angle {
+              display: block;
+            }
+
+            .img {
+              display: none;
+            }
+
           }
 
           .slot {
 
       .text {
         padding: 0.25cm;
-        textarea{
+
+        textarea {
           display: none;
         }
+
         p {
           display: block;
           border: 0;
           resize: none;
           width: 100%;
           height: 100%;
-          color:#000;
+          color: #000;
           background-color: #fff;
         }
       }
       }
 
       .item {
-
         .img {
+          display: none;
+        }
+
+        .img-angle {
           width: @w;
           height: unit(@w*0.35, cm);
           background-position: 50% 50%;