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