Commit e67ba39b authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui/erp5_core] Force calling subfield render

parent 4c123f2c
......@@ -29,7 +29,10 @@
editable: field_json.editable,
name: field_json.key,
title: field_json.title,
hidden: field_json.hidden
hidden: field_json.hidden,
// Force calling subfield render
// as user may have modified the input value
render_timestamp: new Date().getTime()
};
state_dict.text_content = state_dict.checked ? '' : '';
return this.changeState(state_dict);
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>964.58673.54614.19165</string> </value>
<value> <string>965.10615.49166.8413</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1516273481.45</float>
<float>1517321807.6</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -57,7 +57,10 @@
subfield_timezone_key: field_json.subfield_timezone_key,
start_datetime: field_json.start_datetime,
end_datetime: field_json.end_datetime,
hidden: field_json.hidden
hidden: field_json.hidden,
// Force calling subfield render
// as user may have modified the input value
render_timestamp: new Date().getTime()
};
return this.changeState(state_dict);
})
......
......@@ -224,7 +224,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>964.28338.34111.16742</string> </value>
<value> <string>965.3167.36247.3959</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -242,7 +242,7 @@
</tuple>
<state>
<tuple>
<float>1516273374.69</float>
<float>1517321711.65</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -14,7 +14,10 @@
editable: field_json.editable,
name: field_json.key,
title: field_json.title,
hidden: field_json.hidden
hidden: field_json.hidden,
// Force calling subfield render
// as user may have modified the input value
render_timestamp: new Date().getTime()
};
state_dict.inner_html = state_dict.value;
return this.changeState(state_dict);
......
......@@ -236,7 +236,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>955.2252.33079.47462</string> </value>
<value> <string>963.11788.48702.26146</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -254,7 +254,7 @@
</tuple>
<state>
<tuple>
<float>1479375938.91</float>
<float>1516702186.86</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -17,7 +17,10 @@
name: field_json.key,
title: field_json.title,
type: 'email',
hidden: field_json.hidden
hidden: field_json.hidden,
// Force calling subfield render
// as user may have modified the input value
render_timestamp: new Date().getTime()
};
state_dict.text_content = state_dict.value;
return this.changeState(state_dict);
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>964.58690.62622.54732</string> </value>
<value> <string>965.241.13759.3805</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1516274124.26</float>
<float>1517321664.03</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -16,7 +16,10 @@
required: field_json.required,
name: field_json.key,
title: field_json.title,
hidden: field_json.hidden
hidden: field_json.hidden,
// Force calling subfield render
// as user may have modified the input value
render_timestamp: new Date().getTime()
};
return this.changeState(state_dict);
})
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>963.11788.48702.26146</string> </value>
<value> <string>965.241.13759.3805</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1516274354.26</float>
<float>1517321650.56</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -41,7 +41,10 @@
// if unspecified we can use "any" value
step: "any",
// `append` is a string to display next to the field ("%", "EUR"...)
append: ''
append: '',
// Force calling subfield render
// as user may have modified the input value
render_timestamp: new Date().getTime()
},
tmp;
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>964.3910.33744.24644</string> </value>
<value> <string>965.241.13759.3805</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1516274429.28</float>
<float>1517321634.14</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -14,7 +14,10 @@
url: options.field_json.url,
sandbox: options.field_json.sandbox || undefined,
hidden: options.field_json.hidden,
css_class: options.field_json.css_class
css_class: options.field_json.css_class,
// Force calling subfield render
// as user may have modified the input value
render_timestamp: new Date().getTime()
});
})
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>963.11788.48702.26146</string> </value>
<value> <string>965.300.34630.14250</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1516274684.77</float>
<float>1516703954.27</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -18,7 +18,10 @@
required: field_json.required,
name: field_json.key,
title: field_json.title,
hidden: field_json.hidden
hidden: field_json.hidden,
// Force calling subfield render
// as user may have modified the input value
render_timestamp: new Date().getTime()
};
state_dict.text_content = state_dict.value;
return this.changeState(state_dict);
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>963.11788.48702.26146</string> </value>
<value> <string>965.241.13759.3805</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1516274738.47</float>
<float>1517321585.88</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -21,7 +21,10 @@
"required": options.field_json.required,
"hidden": options.field_json.hidden,
"title": options.field_json.title,
"key": options.field_json.key
"key": options.field_json.key,
// Force calling subfield render
// as user may have modified the input value
render_timestamp: new Date().getTime()
};
if (this.state.gadget_rendered === false) {
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>964.54328.21867.14506</string> </value>
<value> <string>964.58561.19908.14080</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1516015281.65</float>
<float>1517321571.05</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -18,7 +18,10 @@
name: field_json.key,
title: field_json.title,
first_item: field_json.first_item,
hidden: field_json.hidden
hidden: field_json.hidden,
// Force calling subfield render
// as user may have modified the input value
render_timestamp: new Date().getTime()
};
if ((!state_dict.value) && (state_dict.first_item)) {
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>963.11788.48702.26146</string> </value>
<value> <string>965.1659.33258.11707</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1516274989.51</float>
<float>1516786204.34</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -60,7 +60,10 @@
name: field_json.key,
item_list: field_json.items,
value_list: field_json.value || field_json.default,
hidden: field_json.hidden
hidden: field_json.hidden,
// Force calling subfield render
// as user may have modified the input value
render_timestamp: new Date().getTime()
};
return this.changeState(state_dict);
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>963.11788.48702.26146</string> </value>
<value> <string>965.241.13759.3805</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1516282312.66</float>
<float>1517321512.62</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -49,7 +49,10 @@
key: field_json.key,
sub_select_key: field_json.sub_select_key,
sub_input_key: field_json.sub_input_key,
hidden: field_json.hidden
hidden: field_json.hidden,
// Force calling subfield render
// as user may have modified the input value
render_timestamp: new Date().getTime()
};
if ((item_list.length === 0) || (item_list[0][0] !== "")) {
item_list.unshift(["", ""]);
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>963.11788.48702.26146</string> </value>
<value> <string>965.241.13759.3805</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1516282402.31</float>
<float>1517321477.39</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -60,7 +60,10 @@
portal_types: field_json.portal_types,
translated_portal_types: field_json.translated_portal_types,
relation_field_id: field_json.relation_field_id,
hidden: field_json.hidden
hidden: field_json.hidden,
// Force calling subfield render
// as user may have modified the input value
render_timestamp: new Date().getTime()
};
if (field_json.default.hasOwnProperty('value_text_list')) {
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>964.45640.391.48230</string> </value>
<value> <string>965.241.13759.3805</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1516282515.3</float>
<float>1517321450.32</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -17,7 +17,10 @@
name: field_json.key,
title: field_json.title,
type: 'password',
hidden: field_json.hidden
hidden: field_json.hidden,
// Force calling subfield render
// as user may have modified the input value
render_timestamp: new Date().getTime()
};
state_dict.text_content = state_dict.value;
return this.changeState(state_dict);
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>963.11788.48702.26146</string> </value>
<value> <string>965.241.13759.3805</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1516295166.36</float>
<float>1517321403.8</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -55,7 +55,10 @@
name: field_json.key,
title: field_json.title,
item_list: field_json.items,
hidden: field_json.hidden
hidden: field_json.hidden,
// Force calling subfield render
// as user may have modified the input value
render_timestamp: new Date().getTime()
};
//the first item will always be selected if no initial default value is supplied.
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>963.11788.48702.26146</string> </value>
<value> <string>965.241.13759.3805</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1516351756.55</float>
<float>1517321388.02</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -17,7 +17,10 @@
name: field_json.key,
title: field_json.title,
hidden: field_json.hidden,
trim: true
trim: true,
// Force calling subfield render
// as user may have modified the input value
render_timestamp: new Date().getTime()
};
state_dict.text_content = state_dict.value;
return this.changeState(state_dict);
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>964.58974.3063.39065</string> </value>
<value> <string>964.64440.33953.5239</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1516352339.02</float>
<float>1516627821.55</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -14,7 +14,10 @@
editable: field_json.editable,
name: field_json.key,
title: field_json.title,
hidden: field_json.hidden
hidden: field_json.hidden,
// Force calling subfield render
// as user may have modified the input value
render_timestamp: new Date().getTime()
};
state_dict.text_content = state_dict.value;
return this.changeState(state_dict);
......
......@@ -236,7 +236,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>963.54995.41625.39389</string> </value>
<value> <string>965.241.13759.3805</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -254,7 +254,7 @@
</tuple>
<state>
<tuple>
<float>1516352427.53</float>
<float>1517321833.44</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -52,7 +52,10 @@ lockGadgetInQueue, unlockGadgetInQueue, unlockGadgetInFailedQueue*/
maximize: options.maximize,
portal_type: options.portal_type,
editable: options.editable || false,
key: options.key
key: options.key,
// Force calling subfield render
// as user may have modified the input value
render_timestamp: new Date().getTime()
};
return this.changeState(state_dict);
})
......
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