Commit b8650496 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: Fix GadgetField definition

parent 6b254e69
...@@ -35,19 +35,21 @@ ...@@ -35,19 +35,21 @@
for (i = 0; i < len; i += 1) { for (i = 0; i < len; i += 1) {
if (1 || (result.data.rows[i].value.hasOwnProperty("asStrippedHTML"))) { if (1 || (result.data.rows[i].value.hasOwnProperty("asStrippedHTML"))) {
result.data.rows[i].value.text_content = { result.data.rows[i].value.text_content = {
css_class: "", field_gadget_param : {
description: "The Status", css_class: "",
hidden: 0, description: "The Status",
"default": {doc: {title: result.data.rows[i].value.title, hidden: 0,
source: result.data.rows[i].value.source_title, "default": {doc: {title: result.data.rows[i].value.title,
modification_date: result.data.rows[i].value.modification_date, source: result.data.rows[i].value.source_title,
content_type: result.data.rows[i].value.content_type, modification_date: result.data.rows[i].value.modification_date,
text_content: result.data.rows[i].value.asStrippedHTML}}, content_type: result.data.rows[i].value.content_type,
key: "status", text_content: result.data.rows[i].value.asStrippedHTML}},
url: "gadget_slapos_event_discussion_entry.html", key: "status",
title: "Status", url: "gadget_slapos_event_discussion_entry.html",
editable: 1, title: "Status",
type: "GadgetField" editable: 1,
type: "GadgetField"
}
}; };
result.data.rows[i].value["listbox_uid:list"] = { result.data.rows[i].value["listbox_uid:list"] = {
key: "listbox_uid:list", key: "listbox_uid:list",
......
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