From d8be83555df01a3aa81cc829adbbb9fc662fbe6d Mon Sep 17 00:00:00 2001
From: Vincent Bechu <vincent.bechu@nexedi.com>
Date: Mon, 21 Aug 2017 09:07:24 +0000
Subject: [PATCH] [erp5_officejs_jquery_app] Add Image preview in Image Editor
 view

---
 .../gadget_image_editor_officejs_appcache.xml               | 6 ++++--
 .../web_page_module/gadget_image_editor_officejs_view_js.js | 2 +-
 .../gadget_image_editor_officejs_view_js.xml                | 4 ++--
 3 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/bt5/erp5_officejs_jquery_app/PathTemplateItem/web_page_module/gadget_image_editor_officejs_appcache.xml b/bt5/erp5_officejs_jquery_app/PathTemplateItem/web_page_module/gadget_image_editor_officejs_appcache.xml
index d9404ff319..6091c0a22e 100644
--- a/bt5/erp5_officejs_jquery_app/PathTemplateItem/web_page_module/gadget_image_editor_officejs_appcache.xml
+++ b/bt5/erp5_officejs_jquery_app/PathTemplateItem/web_page_module/gadget_image_editor_officejs_appcache.xml
@@ -198,6 +198,8 @@ gadget_erp5_sort_editor.js\n
 gadget_erp5_field_password.html\n
 gadget_erp5_field_password.js\n
 \n
+gadget_erp5_field_image.html\n
+gadget_erp5_field_image.js\n
 gadget_officejs_image_editor_router.html\n
 gadget_officejs_jio_image_view.html\n
 gadget_officejs_jio_image_view.js\n
@@ -346,7 +348,7 @@ NETWORK:\n
             </item>
             <item>
                 <key> <string>serial</string> </key>
-                <value> <string>961.10686.10882.5973</string> </value>
+                <value> <string>961.30792.56927.40004</string> </value>
             </item>
             <item>
                 <key> <string>state</string> </key>
@@ -364,7 +366,7 @@ NETWORK:\n
                     </tuple>
                     <state>
                       <tuple>
-                        <float>1502956919.7</float>
+                        <float>1503306177.8</float>
                         <string>UTC</string>
                       </tuple>
                     </state>
diff --git a/bt5/erp5_officejs_jquery_app/PathTemplateItem/web_page_module/gadget_image_editor_officejs_view_js.js b/bt5/erp5_officejs_jquery_app/PathTemplateItem/web_page_module/gadget_image_editor_officejs_view_js.js
index a2d88b8fcc..755edb6bdb 100644
--- a/bt5/erp5_officejs_jquery_app/PathTemplateItem/web_page_module/gadget_image_editor_officejs_view_js.js
+++ b/bt5/erp5_officejs_jquery_app/PathTemplateItem/web_page_module/gadget_image_editor_officejs_view_js.js
@@ -150,7 +150,7 @@
                   "editable": editable,
                   "key": "text_content",
                   "hidden": 0,
-                  "type": editable === 1 ? "GadgetField" : "EditorField",
+                  "type": editable === 1 ? "GadgetField" : "ImageField",
                   "url": "../officejs_image_editor_gadget/app/",
                   "sandbox": "iframe"
                 }
diff --git a/bt5/erp5_officejs_jquery_app/PathTemplateItem/web_page_module/gadget_image_editor_officejs_view_js.xml b/bt5/erp5_officejs_jquery_app/PathTemplateItem/web_page_module/gadget_image_editor_officejs_view_js.xml
index 75c0a59fb3..e6822c2e0f 100644
--- a/bt5/erp5_officejs_jquery_app/PathTemplateItem/web_page_module/gadget_image_editor_officejs_view_js.xml
+++ b/bt5/erp5_officejs_jquery_app/PathTemplateItem/web_page_module/gadget_image_editor_officejs_view_js.xml
@@ -235,7 +235,7 @@
             </item>
             <item>
                 <key> <string>serial</string> </key>
-                <value> <string>961.12101.11676.29115</string> </value>
+                <value> <string>961.16277.24517.44253</string> </value>
             </item>
             <item>
                 <key> <string>state</string> </key>
@@ -253,7 +253,7 @@
                     </tuple>
                     <state>
                       <tuple>
-                        <float>1502094301.01</float>
+                        <float>1503306120.68</float>
                         <string>UTC</string>
                       </tuple>
                     </state>
-- 
2.30.9