Commit 755ce062 authored by Romain Courteaud's avatar Romain Courteaud Committed by Jérome Perrin

[erp5_xhtml_style] Support some methods used in ERP5JS

parent 9809b3cc
...@@ -69,6 +69,23 @@ ...@@ -69,6 +69,23 @@
return displayFieldError(argument_list[0]); return displayFieldError(argument_list[0]);
}) })
/////////////////////////////////////////////////////////////////
// Support some methods used in ERP5JS
/////////////////////////////////////////////////////////////////
.allowPublicAcquisition('notifyChange',
function () {
return;
})
.allowPublicAcquisition('notifyValid',
function () {
return;
})
.allowPublicAcquisition('notifySubmit', function () {
return this.element.querySelector('form').querySelector('[type="submit"]').click();
})
///////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////
// declared methods // declared methods
///////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////
......
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