How to: on_after_commit when using JavaScript LuCI

Dear all
Until now I was using CBI lua server side pages. One of the most appreciated functions was use the hooks mechanism like Map.on_after_commit so I can call my own code after all uci variables was upgraded in /etc/config/...
How can I achieve same thing for new LuCI / javascript client side? I've test Option.write but it is called before the uci variable is written, so it doesn't work.

Thank you

As far as I've found here, it metions that it is possible to catch uci-applied event (it works!), to do your stuff after new params are applied. The problem is that this is called when whole page settings are applied, and this would be an issue if you work with tabbed pages.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.