Lines Matching refs:gantt

125 gantt.config.undo = true;
126 gantt.config.redo = true;
131 gantt.config.undo_types = {
139 gantt.config.undo_actions = {
145 if (!gantt.ext) {
146 gantt.ext = {};
148 gantt.ext.undo = {
157 gantt.undo = gantt.ext.undo.undo;
158 gantt.redo = gantt.ext.undo.redo;
159 gantt.getUndoStack = gantt.ext.undo.getUndoStack;
160 gantt.getRedoStack = gantt.ext.undo.getRedoStack;
161 gantt.clearUndoStack = gantt.ext.undo.clearUndoStack;
162 gantt.clearRedoStack = gantt.ext.undo.clearRedoStack;
224 gantt.attachEvent("onTaskIdChange", function (oldId, newId) {
229 gantt.attachEvent("onLinkIdChange", function (oldId, newId) {
234 gantt.attachEvent("onGanttReady", function () {
276 if (type === gantt.config.undo_types.task) {
279 if (type === gantt.config.undo_types.link) {
372 var linkIds = this._getLinks(gantt.getTask(id));
391 var task = gantt.copy(gantt.getTask(id));
392 task.$index = gantt.getTaskIndex(id);
408 this._initialLinks[id] = gantt.copy(gantt.getLink(id));
427 gantt.eachTask(function (task) {
431 gantt.getLinks().forEach(function (link) {
437 return gantt.copy(gantt.getTask(id));
440 gantt.attachEvent(i, function () {
444 gantt.attachEvent(noTrack[i], function () {
450 gantt.attachEvent(batchActions[i], function () {
455 gantt.attachEvent("onParse", function () {
460 gantt.attachEvent("onAfterTaskAdd", function (id, task) {
464 gantt.attachEvent("onAfterTaskUpdate", function (id, task) {
467 gantt.attachEvent("onAfterTaskDelete", function (id, task) {
470 gantt.attachEvent("onAfterLinkAdd", function (id, link) {
474 gantt.attachEvent("onAfterLinkUpdate", function (id, link) {
477 gantt.attachEvent("onAfterLinkDelete", function (id, link) {
480 gantt.attachEvent("onRowDragEnd", function (id, target) {
485 gantt.attachEvent("onBeforeTaskDelete", function (id) {
486 _this.store(id, gantt.config.undo_types.task);
490 gantt.eachTask(function (task) {
496 var datastore = gantt.getDatastore("task");
509 gantt.attachEvent("onRowDragStart", function (id, target, e) {
514gantt.attachEvent("onBeforeTaskDrag", function (taskId) { return _this.store(taskId, gantt.config.…
515gantt.attachEvent("onLightbox", function (taskId) { return _this.store(taskId, gantt.config.undo_t…
516 gantt.attachEvent("onBeforeTaskAutoSchedule", function (task) {
517 _this.store(task.id, gantt.config.undo_types.task);
520 if (gantt.ext.inlineEditors) {
521 gantt.ext.inlineEditors.attachEvent("onEditStart", function (state) {
522 _this.store(state.id, gantt.config.undo_types.task);
558 gantt.eachTask(function (child) {
598 var revert = gantt.copy(action);
618 value: gantt.copy(value),
619 oldValue: gantt.copy(oldValue || value)
623 var revert = gantt.copy(command);
638 gantt.assert(false, "Invalid command " + command);
659 this.maxSteps = gantt.config.undo_steps || MAX_UNDO_STEPS;
660 this.command.entity = gantt.config.undo_types;
661 this.command.type = gantt.config.undo_actions;
662 this.undoEnabled = !!gantt.config.undo;
663 this.redoEnabled = (!!gantt.config.undo) && (!!gantt.config.redo);
674 if (gantt.callEvent("onBeforeUndo", [action]) !== false) {
677 this._push(this._redoStack, gantt.copy(action));
678 gantt.callEvent("onAfterUndo", [action]);
682 gantt.callEvent("onAfterUndo", [null]);
693 if (gantt.callEvent("onBeforeRedo", [action]) !== false) {
696 this._push(this._undoStack, gantt.copy(action));
697 gantt.callEvent("onAfterRedo", [action]);
701 gantt.callEvent("onAfterRedo", [null]);
713 if (gantt.callEvent(event, [action]) === false) {
774 gantt.batchUpdate(function () {
781gantt[method](command.oldValue, command.oldValue.parent, command.oldValue.$index);
784 if (gantt[check](command.value.id)) {
785 gantt[method](command.value.id);
789 var item = gantt[getMethod](command.value.id);
795 gantt[method](command.value.id);
798 gantt[method](command.value.id, command.value.$index, command.value.parent);