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