"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tine20/Filemanager/js/NodeGridPanel.js" between
tine20-2020.08.3.tar.gz and tine20-2020.08.4.tar.gz

About: Tine 2.0 is a platform independent business software system which combines groupware and customer relationship management (CRM). Commercial support is available. Source code.

NodeGridPanel.js  (tine20-2020.08.3):NodeGridPanel.js  (tine20-2020.08.4)
skipping to change at line 50 skipping to change at line 50
* config values * config values
* @private * @private
*/ */
header: false, header: false,
border: false, border: false,
deferredRender: false, deferredRender: false,
autoExpandColumn: 'name', autoExpandColumn: 'name',
showProgress: true, showProgress: true,
enableDD: true, enableDD: true,
recordClass: Tine.Filemanager.Model.Node, recordClass: 'Filemanager.Node',
listenMessageBus: true, listenMessageBus: true,
hasDetailsPanel: false, hasDetailsPanel: false,
evalGrants: true, evalGrants: true,
// initialLoadAfterRender: false, // initialLoadAfterRender: false,
/** /**
* grid specific * grid specific
* @private * @private
*/ */
currentFolderNode: null, currentFolderNode: null,
skipping to change at line 91 skipping to change at line 91
afterrender: this.initDragDrop afterrender: this.initDragDrop
} }
}); });
if (this.readOnly || ! this.enableDD) { if (this.readOnly || ! this.enableDD) {
this.gridConfig.enableDragDrop = false; this.gridConfig.enableDragDrop = false;
} }
this.dataSafeEnabled = Tine.Tinebase.areaLocks.hasLock(this.dataSafeArea Name); this.dataSafeEnabled = Tine.Tinebase.areaLocks.hasLock(this.dataSafeArea Name);
this.recordProxy = this.recordProxy || Tine.Filemanager.fileRecordBacken d; this.recordProxy = this.recordProxy || Tine.Filemanager.nodeBackend;
this.gridConfig.cm = this.getColumnModel(); this.gridConfig.cm = this.getColumnModel();
this.defaultFilters = this.defaultFilters || [ this.defaultFilters = this.defaultFilters || [
{field: 'query', operator: 'contains', value: ''}, {field: 'query', operator: 'contains', value: ''},
{field: 'path', operator: 'equals', value: Tine.Tinebase.container.g etMyFileNodePath()} {field: 'path', operator: 'equals', value: Tine.Tinebase.container.g etMyFileNodePath()}
]; ];
this.plugins = this.plugins || []; this.plugins = this.plugins || [];
skipping to change at line 234 skipping to change at line 234
* @param {Ext.dd.DragSource} source The drag source that was dragged over t his drop zone * @param {Ext.dd.DragSource} source The drag source that was dragged over t his drop zone
* @param {Event} e The event * @param {Event} e The event
* @param {Object} data An object containing arbitrary data supplied by the drag source * @param {Object} data An object containing arbitrary data supplied by the drag source
* @return {Boolean} True if the drop was valid, else false * @return {Boolean} True if the drop was valid, else false
*/ */
onNodeDrop: function(target, dd, e, data) { onNodeDrop: function(target, dd, e, data) {
if (Ext.fly(dd.getDragEl()).hasClass('x-dd-drop-nodrop')) { if (Ext.fly(dd.getDragEl()).hasClass('x-dd-drop-nodrop')) {
return false; return false;
} }
Tine.Filemanager.fileRecordBackend.copyNodes(data.nodes, target, !(e.ctr lKey || e.altKey)); Tine.Filemanager.nodeBackend.copyNodes(data.nodes, target, !(e.ctrlKey | | e.altKey));
this.grid.getStore().remove(data.nodes); this.grid.getStore().remove(data.nodes);
return true; return true;
}, },
onContainerDrop: function(dd, e, data) { onContainerDrop: function(dd, e, data) {
const filteredContainers = this.getFilteredContainers(); const filteredContainers = this.getFilteredContainers();
const target = Tine.Tinebase.data.Record.setFromJson(_.get(this.getFilte redContainers(),'0'), this.recordClass); const target = Tine.Tinebase.data.Record.setFromJson(_.get(this.getFilte redContainers(),'0'), this.recordClass);
return filteredContainers.length === 1 ? this.onNodeDrop(target, dd, e, data) : false; return filteredContainers.length === 1 ? this.onNodeDrop(target, dd, e, data) : false;
}, },
skipping to change at line 978 skipping to change at line 978
if (0 === uploadKeyArray.length) { if (0 === uploadKeyArray.length) {
return; return;
} }
var params = { var params = {
filenames: filePathsArray, filenames: filePathsArray,
types: fileTypesArray, types: fileTypesArray,
tempFileIds: [], tempFileIds: [],
forceOverwrite: false forceOverwrite: false
}; };
Tine.Filemanager.fileRecordBackend.createNodes(params, uploadKeyArra y, true); Tine.Filemanager.nodeBackend.createNodes(params, uploadKeyArray, tru e);
}); });
}, },
isFile: function (file) { isFile: function (file) {
return Promise.resolve(); return Promise.resolve();
// NOTE: fileReader can't cope with files ~> 1GB // NOTE: fileReader can't cope with files ~> 1GB
// with html5-file-selector we can't have directories here // with html5-file-selector we can't have directories here
// return new Promise(function (resolve, reject) { // return new Promise(function (resolve, reject) {
// var fr = new FileReader(); // var fr = new FileReader();
// fr.onload = function () { // fr.onload = function () {
 End of changes. 4 change blocks. 
4 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)