mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-09-13 13:57:34 -04:00
- Move item_form_plugin_fields render point in form.php from top of fieldset to bottom, near closing form_close(), so plugin fields render after core item fields. - Rework plugin_data_helper.js to sync plugin_data hidden field on every change/click of a [data-plugin-field] element, not just on form submit. Needed because some forms use jQuery Validate's submitHandler, which bypasses native submit event and would leave plugin_data stale. - Refactor sync logic into reusable syncPluginData() helper invoked on initial load, on field change/click, and on submit. Signed-off-by: objecttothis <17935339+objecttothis@users.noreply.github.com>