Commit 63c782e6 authored by Romain Courteaud's avatar Romain Courteaud

romain_dev: forum jslint

parent 3b409ddc
......@@ -250,72 +250,7 @@
}
function renderDiscussionPost(gadget, must_declare, jio_key) {
return loadChildGadget(gadget, "gadget_erp5_pt_form_view.html",
must_declare,
function (form_gadget) {
var thread_info_dict;
return gadget.jio_allDocs({
select_list: ['asStrippedHTML', 'title'],
query: Query.objectToSearchText(
new SimpleQuery({
key: "relative_url",
operator: "=",
type: "simple",
value: jio_key
})
),
limit: [0, 1]
})
.push(function (result_list) {
// XXX implement pseudo getResultValue
thread_info_dict = result_list.data.rows[0].value;
var group_list = [],
field_dict = {};
field_dict.content = {
"editable": 0,
"key": "content",
"default": thread_info_dict.asStrippedHTML,
"type": "EditorField"
};
group_list.push([
"bottom",
[["content"]]
]);
return form_gadget.render({
erp5_document: {
"_embedded": {
"_view": field_dict
},
"_links": {
"type": {
// form_list display portal_type in header
name: ""
}
}
},
form_definition: {
group_list: group_list
}
});
})
.push(function () {
return gadget.getUrlFor({command: 'history_previous'});
})
.push(function (url) {
return gadget.updateHeader({
page_title: 'Post: ' + thread_info_dict.title,
page_icon: 'comment',
front_url: url
});
});
});
}
/*
function createMultipleSimpleOrQuery(key, value_list) {
var i,
query_list = [];
......@@ -333,6 +268,7 @@
type: "complex"
});
}
*/
rJS(window)
/////////////////////////////////////////////////////////////////
......
......@@ -240,7 +240,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>989.27664.22728.10274</string> </value>
<value> <string>989.28652.26663.41830</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -258,7 +258,7 @@
</tuple>
<state>
<tuple>
<float>1610988520.24</float>
<float>1611047820.37</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