/* * Contact Methods script. */ (function (win, doc, undef) { "use strict"; let cm = sax.mdl.contactMethods = { fn: {}, data: {}, ajax: {} }; let $dlg = cm.$dlg = {}; //-------------------------------------------------------------- /* * Config: * fnCallback Method to call to apply changes. * methods Full list of methods. * methodsUsed List of methods already in use. * method Current selected method (if updating). * value Current value. */ sax.editContactMethod = cm.fn.edit = function (cfg) { cm.data.cfg = cfg || {}; cm.$mth.empty(); for (let mth of cfg.methods || []) { if (mth.code && mth.code == cfg.method || !(cfg.methodsUsed || []).includes(mth.code)) cm.$mth.append($('