Commit 6fa22e83 authored by Roque's avatar Roque

erp5_officejs: modification_date rendering and app wallpaper

parent f7601202
......@@ -269,7 +269,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>976.19490.13565.24388</string> </value>
<value> <string>976.21116.33810.46779</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -287,7 +287,7 @@
</tuple>
<state>
<tuple>
<float>1560157575.92</float>
<float>1560255278.97</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -228,7 +228,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>976.19666.32054.39987</string> </value>
<value> <string>976.20855.59157.7082</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -246,7 +246,7 @@
</tuple>
<state>
<tuple>
<float>1560239514.15</float>
<float>1560247811.13</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -66,6 +66,43 @@
.declareAcquiredMethod("notifySubmitted", 'notifySubmitted')
.declareAcquiredMethod("notifySubmitting", "notifySubmitting")
// XXX Hardcoded for modification_date rendering
.allowPublicAcquisition("jio_allDocs", function (param_list) {
var gadget = this;
return gadget.jio_allDocs(param_list[0])
.push(function (result) {
var i, date, len = result.data.total_rows;
for (i = 0; i < len; i += 1) {
if (result.data.rows[i].value.hasOwnProperty("modification_date")) {
date = new Date(result.data.rows[i].value.modification_date);
result.data.rows[i].value.modification_date = {
field_gadget_param: {
allow_empty_time: 0,
ampm_time_style: 0,
css_class: "date_field",
date_only: 0,
description: "The Date",
editable: 0,
hidden: 0,
hidden_day_is_last_day: 0,
"default": date.toUTCString(),
key: "modification_date",
required: 0,
timezone_style: 0,
title: "Modification Date",
type: "DateTimeField"
}
};
result.data.rows[i].value["listbox_uid:list"] = {
key: "listbox_uid:list",
value: 2713
};
}
}
return result;
});
})
/////////////////////////////////////////////////////////////////
// declared methods
/////////////////////////////////////////////////////////////////
......
......@@ -269,7 +269,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>976.20854.39493.27818</string> </value>
<value> <string>976.21123.1432.19609</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -287,7 +287,7 @@
</tuple>
<state>
<tuple>
<float>1560239498.63</float>
<float>1560255763.32</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -234,7 +234,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>975.65480.36316.58760</string> </value>
<value> <string>976.20864.50403.3310</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>1560240046.13</float>
<float>1560247832.99</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -246,7 +246,7 @@
</tuple>
<state>
<tuple>
<float>1560156475.0</float>
<float>1560247823.23</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -269,7 +269,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>976.19665.42949.49544</string> </value>
<value> <string>976.20856.7597.60108</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -287,7 +287,7 @@
</tuple>
<state>
<tuple>
<float>1560239526.95</float>
<float>1560247818.44</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -325,6 +325,16 @@
<value> <string>string</string> </value>
</item>
</dictionary>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>configuration_wallpaper_url</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>string</string> </value>
</item>
</dictionary>
</tuple>
</value>
</item>
......@@ -417,6 +427,10 @@
<none/>
</value>
</item>
<item>
<key> <string>configuration_wallpaper_url</string> </key>
<value> <string>officejs_logo_text_editor.png</string> </value>
</item>
<item>
<key> <string>configuration_webapp_manifest_url</string> </key>
<value> <string>gadget_officejs_text_editor.json</string> </value>
......@@ -680,7 +694,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>975.65245.14433.33911</string> </value>
<value> <string>976.20971.62073.32870</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -698,7 +712,7 @@
</tuple>
<state>
<tuple>
<float>1558984804.96</float>
<float>1560246622.09</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