]> _ Git - fluidbook-html5.git/commitdiff
wip #1998 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 31 May 2018 13:28:46 +0000 (15:28 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 31 May 2018 13:28:46 +0000 (15:28 +0200)
js/libs/fluidbook/fluidbook.js
js/libs/fluidbook/fluidbook.resize.js
js/libs/fluidbook/forms/fluidbook.form.bourbon.js [new file with mode: 0644]

index 1fad66fa34222a544c7b3db321abb5f85957b25d..9b6db4b38838341d3ce302907cd26d01319ab46e 100644 (file)
@@ -56,6 +56,8 @@ Fluidbook.prototype = {
 
         if (this.datas.form == 'bulle') {
             this.form = new FluidbookBulleForm(this);
+        } else if (this.datas.form == 'bourbon') {
+            this.form = new FluidbookBourbonForm(this);
         } else {
             this.form == false;
         }
index d13e475ffc6c6d778b2da72002533af0aebddda1..126c907a479b614554d251960c744455ae44e0eb 100644 (file)
@@ -231,7 +231,11 @@ FluidbookResize.prototype = {
 
 
         if (this.fluidbook.form) {
-            this.fluidbook.form.resize();
+            try {
+                this.fluidbook.form.resize();
+            }catch (e) {
+                
+            }
         }
 
         $("#main").show();
diff --git a/js/libs/fluidbook/forms/fluidbook.form.bourbon.js b/js/libs/fluidbook/forms/fluidbook.form.bourbon.js
new file mode 100644 (file)
index 0000000..a2089f0
--- /dev/null
@@ -0,0 +1,18 @@
+function FluidbookBourbonForm(fluidbook) {
+    this.fluidbook = fluidbook;
+    this.init();
+}
+
+FluidbookBourbonForm.prototype = {
+    init: function () {
+        var $this = this;
+
+        this.fluidbook.menu.openSuggest = this.openSuggest;
+
+    },
+
+    openSuggest: function (p1, p2, callback) {
+
+        callback();
+    }
+};
\ No newline at end of file