/* * The form change monitor API. * * This plugin allows to monitor changes in a form. * The script adds the "oc-data-changed" class to the form element when the form data is changed. * * Supported data attributes: * - data-change-monitor - enables the plugin form a form * - data-window-close-confirm - confirmation message to show when a browser window is closing and there is unsaved data * * Example: