Commit 43204aaf authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Multicheckbox: handle the required parameter

parent e9d81b69
......@@ -146,5 +146,17 @@
});
}
return final_result;
}, {mutex: 'changestate'});
}, {mutex: 'changestate'})
.declareMethod('checkValidity', function () {
var name = this.state.name;
if (this.state.editable && this.state.required) {
return this.getContent()
.push(function (result) {
return result[name].length !== 0;
});
}
return true;
});
}(window, rJS, RSVP, document));
\ No newline at end of file
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>965.241.13759.3805</string> </value>
<value> <string>965.13193.22070.47923</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1517321512.62</float>
<float>1536328261.87</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