Commit 4773d07b authored by Vincent Bechu's avatar Vincent Bechu

[erp5_officejs_ooffice] Can't edit onlyoffice preview document metadata

parent a2594bc6
......@@ -87,7 +87,7 @@
.onStateChange(function () {
var gadget = this,
data,
editable = gadget.state.content_editable;
editable = gadget.state.content_editable ? 1 : 0;
return new RSVP.Queue()
.push(function () {
if (!editable) {
......@@ -128,7 +128,7 @@
"default": gadget.state.doc.title,
"css_class": "",
"required": 1,
"editable": 1,
"editable": editable,
"key": "title",
"hidden": 0,
"type": "StringField"
......@@ -139,7 +139,7 @@
"default": gadget.state.doc.reference,
"css_class": "",
"required": 0,
"editable": 1,
"editable": editable,
"key": "reference",
"hidden": 0,
"type": "StringField"
......@@ -150,7 +150,7 @@
"default": gadget.state.doc.version,
"css_class": "",
"required": 0,
"editable": 1,
"editable": editable,
"key": "version",
"hidden": 0,
"type": "StringField"
......@@ -161,7 +161,7 @@
"default": gadget.state.doc.language,
"css_class": "",
"required": 0,
"editable": 1,
"editable": editable,
"key": "language",
"hidden": 0,
"type": "StringField"
......@@ -172,7 +172,7 @@
"default": gadget.state.doc.description,
"css_class": "",
"required": 0,
"editable": 1,
"editable": editable,
"key": "description",
"hidden": 0,
"type": "TextAreaField"
......@@ -232,7 +232,7 @@
selection_url: url_list[0],
previous_url: url_list[1],
next_url: url_list[2],
save_action: true,
save_action: editable,
download_url: url_list[3]
});
});
......
......@@ -225,7 +225,7 @@
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>P0</string> </value>
<value> <string>zope</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
......@@ -239,7 +239,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>969.27672.42411.61542</string> </value>
<value> <string>969.40439.17819.34594</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -257,7 +257,7 @@
</tuple>
<state>
<tuple>
<float>1533641806.59</float>
<float>1534844393.84</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -87,7 +87,7 @@
.onStateChange(function () {
var gadget = this,
data,
editable = gadget.state.content_editable;
editable = gadget.state.content_editable ? 1 : 0;
return new RSVP.Queue()
.push(function () {
if (!editable) {
......@@ -128,7 +128,7 @@
"default": gadget.state.doc.title,
"css_class": "",
"required": 1,
"editable": 1,
"editable": editable,
"key": "title",
"hidden": 0,
"type": "StringField"
......@@ -139,7 +139,7 @@
"default": gadget.state.doc.reference,
"css_class": "",
"required": 0,
"editable": 1,
"editable": editable,
"key": "reference",
"hidden": 0,
"type": "StringField"
......@@ -150,7 +150,7 @@
"default": gadget.state.doc.version,
"css_class": "",
"required": 0,
"editable": 1,
"editable": editable,
"key": "version",
"hidden": 0,
"type": "StringField"
......@@ -161,7 +161,7 @@
"default": gadget.state.doc.language,
"css_class": "",
"required": 0,
"editable": 1,
"editable": editable,
"key": "language",
"hidden": 0,
"type": "StringField"
......@@ -172,7 +172,7 @@
"default": gadget.state.doc.description,
"css_class": "",
"required": 0,
"editable": 1,
"editable": editable,
"key": "description",
"hidden": 0,
"type": "TextAreaField"
......@@ -232,7 +232,7 @@
selection_url: url_list[0],
previous_url: url_list[1],
next_url: url_list[2],
save_action: true,
save_action: editable,
download_url: url_list[3]
});
});
......
......@@ -225,7 +225,7 @@
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>P0</string> </value>
<value> <string>zope</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
......@@ -239,7 +239,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>969.27672.59993.54476</string> </value>
<value> <string>969.46291.42699.62276</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -257,7 +257,7 @@
</tuple>
<state>
<tuple>
<float>1533641822.14</float>
<float>1534844402.16</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -87,7 +87,7 @@
.onStateChange(function () {
var gadget = this,
data,
editable = gadget.state.content_editable;
editable = gadget.state.content_editable ? 1 : 0;
return new RSVP.Queue()
.push(function () {
if (!editable) {
......@@ -128,7 +128,7 @@
"default": gadget.state.doc.title,
"css_class": "",
"required": 1,
"editable": 1,
"editable": editable,
"key": "title",
"hidden": 0,
"type": "StringField"
......@@ -139,7 +139,7 @@
"default": gadget.state.doc.reference,
"css_class": "",
"required": 0,
"editable": 1,
"editable": editable,
"key": "reference",
"hidden": 0,
"type": "StringField"
......@@ -150,7 +150,7 @@
"default": gadget.state.doc.version,
"css_class": "",
"required": 0,
"editable": 1,
"editable": editable,
"key": "version",
"hidden": 0,
"type": "StringField"
......@@ -161,7 +161,7 @@
"default": gadget.state.doc.language,
"css_class": "",
"required": 0,
"editable": 1,
"editable": editable,
"key": "language",
"hidden": 0,
"type": "StringField"
......@@ -172,7 +172,7 @@
"default": gadget.state.doc.description,
"css_class": "",
"required": 0,
"editable": 1,
"editable": editable,
"key": "description",
"hidden": 0,
"type": "TextAreaField"
......@@ -232,7 +232,7 @@
selection_url: url_list[0],
previous_url: url_list[1],
next_url: url_list[2],
save_action: true,
save_action: editable,
download_url: url_list[3]
});
});
......
......@@ -225,7 +225,7 @@
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>P0</string> </value>
<value> <string>zope</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
......@@ -239,7 +239,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>969.27671.44198.55722</string> </value>
<value> <string>969.40439.29455.34150</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -257,7 +257,7 @@
</tuple>
<state>
<tuple>
<float>1533641764.26</float>
<float>1534844409.14</float>
<string>UTC</string>
</tuple>
</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