Commit 3b78fb24 authored by Valentin Benozillo's avatar Valentin Benozillo Committed by Xiaowu Zhang

[erp5_web_renderjs_ui] Add capture fields in html5_input

parent a5c1da98
...@@ -21,7 +21,8 @@ ...@@ -21,7 +21,8 @@
// as user may have modified the input value // as user may have modified the input value
render_timestamp: new Date().getTime(), render_timestamp: new Date().getTime(),
multiple: field_json.multiple, multiple: field_json.multiple,
accept: field_json.accept accept: field_json.accept,
capture: field_json.capture
}; };
return this.changeState(state_dict); return this.changeState(state_dict);
}) })
......
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>965.52413.25948.8260</string> </value> <value> <string>966.34374.12939.54886</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1519831600.83</float> <float>1523276564.09</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
trim: options.trim || false, trim: options.trim || false,
multiple: options.multiple, multiple: options.multiple,
accept: options.accept, accept: options.accept,
capture: options.capture,
append: options.append, // text to apend after the field append: options.append, // text to apend after the field
prepend: options.prepend // text to prepend infront the field prepend: options.prepend // text to prepend infront the field
}); });
...@@ -62,6 +63,9 @@ ...@@ -62,6 +63,9 @@
if (this.state.step) { if (this.state.step) {
textarea.setAttribute('step', this.state.step); textarea.setAttribute('step', this.state.step);
} }
if (this.state.capture) {
textarea.setAttribute('capture', this.state.capture);
}
if (this.state.accept) { if (this.state.accept) {
textarea.setAttribute('accept', this.state.accept); textarea.setAttribute('accept', this.state.accept);
} }
......
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>966.34378.6978.54135</string> </value> <value> <string>966.44416.58701.37888</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1522420619.52</float> <float>1523022821.7</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