Commit 895cf757 authored by Hamza's avatar Hamza

change officeJs_notebook to use "gadget_jsmd_eval.js" instead of "iodide_master.js"

parent d5c716eb
...@@ -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>976.55509.35519.64085</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>1562233965.75</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
}); });
}) })
...@@ -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,
"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,
"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,
"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,
"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,
"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,
"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}'
} }
}}, }},
"_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>976.55505.44626.63829</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>1562232362.28</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -39,7 +39,8 @@ ...@@ -39,7 +39,8 @@
return gadget.redirect({ return gadget.redirect({
'command': 'display', 'command': 'display',
'options': { 'options': {
'jio_key': options.jio_key 'jio_key': options.jio_key,
'editable': options.editable
} }
}); });
}); });
......
...@@ -242,7 +242,7 @@ ...@@ -242,7 +242,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>970.45827.27759.62020</string> </value> <value> <string>976.55519.44181.17134</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -260,7 +260,7 @@ ...@@ -260,7 +260,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1539074452.96</float> <float>1562234054.18</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_editable_panel.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>976.55467.3484.42427</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>1562230839.28</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