MCPcopy Create free account
hub / github.com/DHTMLX/scheduler / _onResolvedCreateUpdate

Function _onResolvedCreateUpdate

codebase/sources/dhtmlxscheduler.es.js:8126–8146  ·  view source on GitHub ↗
(tag)

Source from the content-addressed store, hash-verified

8124 var action = this.getActionByState(state);
8125 delete dataToSend[this.action_param];
8126 var _onResolvedCreateUpdate = function(tag) {
8127 var resultState = state;
8128 if (tag && tag.responseText && tag.setRequestHeader) {
8129 if (tag.status !== 200) {
8130 resultState = "error";
8131 }
8132 try {
8133 tag = JSON.parse(tag.responseText);
8134 } catch (e) {
8135 }
8136 }
8137 resultState = resultState || "updated";
8138 var sid = rowId;
8139 var tid = rowId;
8140 if (tag) {
8141 resultState = tag.action || resultState;
8142 sid = tag.sid || sid;
8143 tid = tag.id || tag.tid || tid;
8144 }
8145 self.afterUpdateCallback(sid, tid, resultState, tag);
8146 };
8147 const routerMode = "event";
8148 var actionPromise;
8149 if (this._router instanceof Function) {

Callers 1

Calls 1

parseMethod · 0.65

Tested by

no test coverage detected