]> _ Git - fluidbook-html5.git/commitdiff
wip #6864 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 16 Apr 2024 09:35:31 +0000 (11:35 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 16 Apr 2024 09:35:31 +0000 (11:35 +0200)
js/libs/fluidbook/cart/fluidbook.cart.bastide-resah.js
js/libs/fluidbook/fluidbook.cart.js

index 28b4bcc8f6b8b82259b43330f321ccb7f16902a9..2f24544f7cd67d968f73170b10fe987cddc4e851 100644 (file)
@@ -1,4 +1,4 @@
-function FluidbookCartBastide(cart) {
+function FluidbookCartBastideResah(cart) {
     this.cart = cart;
     this.fluidbook = this.cart.fluidbook;
     this.data = this.fluidbook.settings.basketReferences;
@@ -6,7 +6,7 @@ function FluidbookCartBastide(cart) {
     this.init();
 }
 
-FluidbookCartBastide.prototype = {
+FluidbookCartBastideResah.prototype = {
     init: function () {
         let $this = this;
         this.items = this.fluidbook.cache.get('cart', []);
index 30f1ce6b0b493b8fc4fbbb548293329f55c73cc2..bd6514d77d9213ec0b589514fe2ba91bd9ef12b4 100644 (file)
@@ -217,6 +217,8 @@ FluidbookCart.prototype = {
                 return new FluidbookCartCFOC(this);
             case 'Bastide':
                 return new FluidbookCartBastide(this);
+            case 'BastideResah':
+                return new FluidbookCartBastideResah(this);
             default:
                 return null;
         }