Commit 3453adb1 authored by Hamza Chahed's avatar Hamza Chahed

change officeJs_notebook to use gadget_jsmd_eval instead of iodide_master

parent 2a93926f
...@@ -55,6 +55,7 @@ ...@@ -55,6 +55,7 @@
return gadget.changeState({ return gadget.changeState({
jio_key: options.jio_key, jio_key: options.jio_key,
editable: options.editable || false,///P
doc: result, doc: result,
child_gadget_url: child_gadget_url child_gadget_url: child_gadget_url
}); });
...@@ -68,7 +69,8 @@ ...@@ -68,7 +69,8 @@
.push(function (child_gadget) { .push(function (child_gadget) {
return child_gadget.render({ return child_gadget.render({
jio_key: gadget.state.jio_key, jio_key: gadget.state.jio_key,
doc: gadget.state.doc doc: gadget.state.doc,
editable: gadget.state.editable///P
}); });
}); });
} }
...@@ -83,7 +85,8 @@ ...@@ -83,7 +85,8 @@
.push(function (form_gadget) { .push(function (form_gadget) {
return form_gadget.render({ return form_gadget.render({
jio_key: gadget.state.jio_key, jio_key: gadget.state.jio_key,
doc: gadget.state.doc doc: gadget.state.doc,
editable: gadget.state.editable///P
}); });
}); });
}); });
......
...@@ -225,7 +225,7 @@ ...@@ -225,7 +225,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>967.6016.61211.59613</string> </value> <value> <string>977.36473.21326.52036</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -243,7 +243,7 @@ ...@@ -243,7 +243,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1524754712.51</float> <float>1565098210.86</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width" />
<title>ERP5 Panel</title>
<link rel="http://www.renderjs.org/rel/interface" href="interface_panel.html">
<!--
data-i18n=Editable
data-i18n=Home
data-i18n=Modules
data-i18n=Worklists
data-i18n=History
data-i18n=Search
data-i18n=Preferences
data-i18n=Logout
data-i18n=Views
data-i18n=Workflows
data-i18n=Actions
-->
<!-- renderjs -->
<script src="rsvp.js" type="text/javascript"></script>
<script src="renderjs.js" type="text/javascript"></script>
<script src="gadget_global.js" type="text/javascript"></script>
<!-- custom script -->
<script src="gadget_erp5_ojs_panel_with_editable.js" type="text/javascript"></script>
</head>
<body>
<div>
<div data-role="header">
<div class="ui-btn-left">
<div class="ui-controlgroup-controls">
<button data-i18n="Close" class="ui-btn-icon-notext ui-icon-delete">Close</button>
</div>
</div>
</div>
<div>
<form>
<button type="submit" class="ui-icon-action ui-btn-icon-right ui-screen-hidden">Submit</button>
<div data-gadget-url="gadget_erp5_searchfield.html"
data-gadget-scope="erp5_searchfield"
data-gadget-sandbox="public"></div>
</form>
<ul></ul>
<div data-gadget-url="gadget_erp5_field_multicheckbox.html"
data-gadget-scope="erp5_checkbox"
data-gadget-sandbox="public"></div>
<dl></dl>
</div>
</div>
</body>
</html>
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>969.37889.56311.25753</string> </value> <value> <string>977.28694.830.42120</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -266,7 +266,7 @@ ...@@ -266,7 +266,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1534254952.0</float> <float>1565098238.18</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -21,7 +21,8 @@ ...@@ -21,7 +21,8 @@
.declareMethod("render", function (options) { .declareMethod("render", function (options) {
return this.changeState({ return this.changeState({
jio_key: options.jio_key, jio_key: options.jio_key,
doc: options.doc doc: options.doc,
editable: options.editable///P
}); });
}) })
...@@ -59,7 +60,7 @@ ...@@ -59,7 +60,7 @@
"default": gadget.state.doc.title, "default": gadget.state.doc.title,
"css_class": "", "css_class": "",
"required": 1, "required": 1,
"editable": 1, "editable": gadget.state.editable,///P
"key": "title", "key": "title",
"hidden": 0, "hidden": 0,
"type": "StringField" "type": "StringField"
...@@ -70,7 +71,7 @@ ...@@ -70,7 +71,7 @@
"default": gadget.state.doc.reference, "default": gadget.state.doc.reference,
"css_class": "", "css_class": "",
"required": 0, "required": 0,
"editable": 1, "editable": gadget.state.editable,///P
"key": "reference", "key": "reference",
"hidden": 0, "hidden": 0,
"type": "StringField" "type": "StringField"
...@@ -81,7 +82,7 @@ ...@@ -81,7 +82,7 @@
"default": gadget.state.doc.version, "default": gadget.state.doc.version,
"css_class": "", "css_class": "",
"required": 0, "required": 0,
"editable": 1, "editable": gadget.state.editable,///P
"key": "version", "key": "version",
"hidden": 0, "hidden": 0,
"type": "StringField" "type": "StringField"
...@@ -92,7 +93,7 @@ ...@@ -92,7 +93,7 @@
"default": gadget.state.doc.language, "default": gadget.state.doc.language,
"css_class": "", "css_class": "",
"required": 0, "required": 0,
"editable": 1, "editable": gadget.state.editable,///P
"key": "language", "key": "language",
"hidden": 0, "hidden": 0,
"type": "StringField" "type": "StringField"
...@@ -103,7 +104,7 @@ ...@@ -103,7 +104,7 @@
"default": gadget.state.doc.description, "default": gadget.state.doc.description,
"css_class": "", "css_class": "",
"required": 0, "required": 0,
"editable": 1, "editable": gadget.state.editable,///P
"key": "description", "key": "description",
"hidden": 0, "hidden": 0,
"type": "TextAreaField" "type": "TextAreaField"
...@@ -112,13 +113,13 @@ ...@@ -112,13 +113,13 @@
"default": gadget.state.doc.text_content, "default": gadget.state.doc.text_content,
"css_class": "", "css_class": "",
"required": 0, "required": 0,
"editable": 1, "editable": gadget.state.editable,///P
"key": "text_content", "key": "text_content",
"hidden": 0, "hidden": 0,
"type": "GadgetField", "type": "GadgetField",
"url": "gadget_editor.html", "url": "gadget_editor.html",
"sandbox": "public", "sandbox": "public",
"renderjs_extra": '{"editor": "notebook_editor", "maximize": true}' "renderjs_extra": '{"editor": "jsmd_editor", "maximize": true}'///P
} }
}}, }},
"_links": { "_links": {
......
...@@ -244,7 +244,7 @@ ...@@ -244,7 +244,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>970.42986.60138.7065</string> </value> <value> <string>977.36477.39617.29644</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -262,7 +262,7 @@ ...@@ -262,7 +262,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1538406432.04</float> <float>1565098228.79</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -229,7 +229,7 @@ ...@@ -229,7 +229,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>961.578.63257.59545</string> </value> <value> <string>977.28694.830.42120</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -247,7 +247,7 @@ ...@@ -247,7 +247,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1501163709.2</float> <float>1565098202.92</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -358,7 +358,7 @@ ...@@ -358,7 +358,7 @@
</item> </item>
<item> <item>
<key> <string>configuration_panel_gadget_url</string> </key> <key> <string>configuration_panel_gadget_url</string> </key>
<value> <string>gadget_erp5_ojs_panel.html</string> </value> <value> <string>gadget_erp5_ojs_panel_with_editable.html</string> </value>
</item> </item>
<item> <item>
<key> <string>configuration_router_gadget_url</string> </key> <key> <string>configuration_router_gadget_url</string> </key>
...@@ -647,7 +647,7 @@ ...@@ -647,7 +647,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>973.33482.4166.8669</string> </value> <value> <string>977.28694.830.42120</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -665,7 +665,7 @@ ...@@ -665,7 +665,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1549887971.4</float> <float>1565022204.56</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment