MCPcopy Create free account
hub / github.com/adobe/Marinus / update_div_preview

Function update_div_preview

web_server/public/javascripts/email.js:76–97  ·  view source on GitHub ↗
(ev)

Source from the content-addressed store, hash-verified

74}
75
76function update_div_preview(ev) {
77 if (ev == null || ev.detail == null) {
78 return false;
79 }
80 var id = ev.currentTarget.id;
81 var parts = id.split(/:/);
82 var zone = parts[1];
83
84 let url;
85 if (parts[0].includes("mx")) {
86 url = "/api/v1.0/dns?dnsType=mx&zone=" + zone;
87 } else if (parts[0].includes("spf")) {
88 url = "/api/v1.0/dns?txtSearch=spf&zone=" + zone;
89 } else {
90 url = "/api/v1.0/dns?txtSearch=dkim&zone=" + zone;
91 }
92
93 make_get_request(url, update_preview, parts[0]);
94
95 ev.preventDefault();
96 return false;
97}

Callers

nothing calls this directly

Calls 1

make_get_requestFunction · 0.85

Tested by

no test coverage detected