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

Function _onResolvedCreateUpdate

codebase/sources/dhtmlxscheduler.js:8130–8150  ·  view source on GitHub ↗
(tag)

Source from the content-addressed store, hash-verified

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

Callers 1

dhtmlxscheduler.jsFile · 0.70

Calls 1

parseMethod · 0.65

Tested by

no test coverage detected