Commit a7ffbc92 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_xhtml_style] Support some methods used in ERP5JS

parent 66ed6d58
...@@ -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
///////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////
......
  • @romain any plans to also support translation methods as well ? (maybe even as a noop just returning the original message)

    Also, what about making notifyChange also set the changed global flag which triggers the onBeforeUnload confirmation ?

  • @jerome no plan, because I was not aware of a gadget using translation in xhtml style.

    But feel free to add the changes you described.

  • mentioned in merge request !880 (merged)

    Toggle commit list
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