uawdijnntqw1x1x1
IP : 18.216.31.88
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
axolotl.ru
/
www
/
bitrix
/
js
/
crm
/
kanban
/
js
/
dropzone.js
/
/
(function() { "use strict"; BX.namespace("BX.CRM.Kanban"); /** * @param options * @extends {BX.Kanban.Grid} * @constructor */ BX.CRM.Kanban.DropZone = function(options) { BX.Kanban.DropZone.apply(this, arguments); this.droppedItems = []; }; BX.CRM.Kanban.DropZone.prototype = { __proto__: BX.Kanban.DropZone.prototype, constructor: BX.CRM.Kanban.DropZone, /** * * @param {Element} itemNode * @param {number} x * @param {number} y */ onDragDrop: function(itemNode, x, y) { var draggableItem; var gridData = this.getGrid().getData(); var data = this.getData(); this.getGrid().dropZonesShow = true; if ( (this.getGrid().getChecked().length > 1) && ( gridData.entityType === "LEAD" && data.type === "WIN" || gridData.entityType === "INVOICE" ) ) { this.getGrid().getPopupCancel(BX.message("CRM_KANBAN_MASS_CONVERT_DISABLE")).show(); if (this.getGrid().getChecked().length > 0) { for (var i = 0; i < this.getGrid().getChecked().length; i++) { BX.removeClass( this.getGrid().getChecked()[i].layout.container, "main-kanban-item-disabled" ); } this.getGrid().resetMultiSelectMode(); } return; } var checkedElements = this.getGrid().getChecked(); draggableItem = this.getGrid().getItemByElement(itemNode); this.captureItem(draggableItem); this.getDropZoneArea().unsetActive(); if(checkedElements.length > 1 && this.droppedItem) { this.droppedItems = checkedElements; for (var i = 0; i < this.droppedItems.length; i++) { this.getGrid().hideItem(this.droppedItems[i]); if (draggableItem !== this.droppedItems[i]) { this.droppedItems[i].getColumn().decPrice( this.droppedItems[i].data.price ); this.droppedItems[i].getColumn().renderSubTitle(); } } } }, /** * * @param {BX.Kanban.Item} item */ captureItem: function(item) { var event; event = new BX.Kanban.DropZoneEvent(); event.setItem(item); event.setDropZone(this); BX.onCustomEvent(this.getGrid(), "Kanban.DropZone:onBeforeItemCaptured", [event]); if (!event.isActionAllowed()) { return; } this.empty(); this.droppedItem = item; this.getDropZoneArea().show(); this.setCaptured(); this.unsetActive(); this.animateRemove(item.layout.container); this.getGrid().hideItem(item); BX.onCustomEvent(this.getGrid(), "Kanban.DropZone:onItemCaptured", [item, this]); this.captureTimeout = setTimeout( function() { this.empty(); this.getDropZoneArea().hide(); this.droppedItems = []; this.getGrid().dropZonesShow = false; }.bind(this), this.getDropZoneArea().getDropZoneTimeout() ); }, restore: function() { this.getGrid().dropZonesShow = false; if (this.captureTimeout) { clearTimeout(this.captureTimeout); } if (this.droppedItem === null) { return; } var event = new BX.Kanban.DropZoneEvent(); if (!event.isActionAllowed()) { return; } this.unsetActive(); this.unsetCaptured(); if(this.droppedItems.length > 0) { this.droppedItems = this.getGrid().getChecked(); for (var i = 0; i < this.droppedItems.length; i++) { event.setItem(this.droppedItems[i]); event.setDropZone(this); BX.onCustomEvent(this.getGrid(), "Kanban.DropZone:onBeforeItemRestored", [event]); this.getGrid().unhideItem(this.droppedItems[i]); if (this.droppedItem !== this.droppedItems[i]) { this.droppedItems[i].getColumn().incPrice( this.droppedItems[i].data.price ); this.droppedItems[i].getColumn().renderSubTitle(); } BX.onCustomEvent(this.getGrid(), "Kanban.DropZone:onItemRestored", [this.droppedItems[i], this]); } this.droppedItem = null; return; } event.setItem(this.droppedItem); event.setDropZone(this); BX.onCustomEvent(this.getGrid(), "Kanban.DropZone:onBeforeItemRestored", [event]); this.getGrid().unhideItem(this.droppedItem); BX.onCustomEvent(this.getGrid(), "Kanban.DropZone:onItemRestored", [this.droppedItem, this]); this.droppedItem = null; }, /** * * @returns {Element} */ getContainer: function() { if (this.layout.container !== null) { return this.layout.container } var childrens = []; childrens.push(this.getNameContainer()); if (this.getId() !== 'DELETED') { childrens.push(this.getCancelLink()); } childrens.push(this.getBgContainer()); this.layout.container = BX.create("div", { attrs: { className: "main-kanban-dropzone", "data-id": this.getId() }, children: childrens }); this.makeDroppable(); var dropZonesArray = []; for(var prop in this.dropZoneArea.dropZones) { dropZonesArray.push(this.dropZoneArea.dropZones[prop]); } if(dropZonesArray.length === 1) { this.layout.container.style.minWidth = "auto"; this.layout.container.style.maxWidth = "none"; } return this.layout.container; }, makeDroppable: function() { var container = this.getContainer(); container.onbxdestdraghover = BX.delegate(this.onDragEnter, this); container.onbxdestdraghout = BX.delegate(this.onDragLeave, this); container.onbxdestdragfinish = BX.delegate(this.onDragDrop, this); jsDD.registerDest(container, 4); }, /** * @param {Element} itemNode * @param {number} x * @param {number} y */ onDragEnter: function(itemNode, x, y) { var item = this.getGrid().getItemByElement(itemNode); if (item.isItemMoveDisabled()) { return; } this.setActive(); this.getDropZoneArea().setActive(); }, }; })();
/var/www/axolotl/data/www/axolotl.ru/www/bitrix/js/crm/kanban/js/dropzone.js