mdsupport wrote on Wednesday, September 21, 2016:
Pull Request #265 provides one way to incorporate user preferences in existing code potentially eliminating need for a global setting. Steps are:
- At start fetch previous setting into a
php variable
using existing hard coded value as the default. - Pass
php variable
to jquery/javascript with json_encode. - Modify html code to replace existing default with
php variable
. - Add/modify event listener for dom object to immediately post changes to user setting.
- Maintain user’s ability to reverse effects of their action.