@syncfusion/ej2-filemanager 23.1.39 → 23.1.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/ej2-filemanager.min.js +2 -2
- package/dist/ej2-filemanager.umd.min.js +2 -2
- package/dist/ej2-filemanager.umd.min.js.map +1 -1
- package/dist/es6/ej2-filemanager.es2015.js +4 -4
- package/dist/es6/ej2-filemanager.es2015.js.map +1 -1
- package/dist/es6/ej2-filemanager.es5.js +4 -4
- package/dist/es6/ej2-filemanager.es5.js.map +1 -1
- package/dist/global/ej2-filemanager.min.js +2 -2
- package/dist/global/ej2-filemanager.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +8 -8
- package/src/file-manager/common/operations.js +4 -4
@@ -2470,7 +2470,7 @@ parent, data, fn, event, operation, targetPath) {
|
|
2470
2470
|
setValue('location', location, result.details);
|
2471
2471
|
}
|
2472
2472
|
fn(parent, result, event, operation, targetPath);
|
2473
|
-
if (!isNullOrUndefined(result.files) && (event === 'path-changed' || event === 'finalize-end' || event === 'open-end')) {
|
2473
|
+
if (!isNullOrUndefined(result.files) && (event === 'path-changed' || event === 'finalize-end' || event === 'open-end' || event === 'drop-path')) {
|
2474
2474
|
parent.notify(searchTextChange, result);
|
2475
2475
|
}
|
2476
2476
|
if (typeof getValue('onSuccess', beforeSendArgs.ajaxSettings) === 'function') {
|
@@ -2638,15 +2638,15 @@ function renameSuccess(parent, result, path) {
|
|
2638
2638
|
const args = { action: 'rename', result: result };
|
2639
2639
|
parent.trigger('success', args);
|
2640
2640
|
parent.renamedItem = Array.isArray(result.files) ? result.files[0] : result.files;
|
2641
|
-
if (getValue('filterPath', parent.renamedItem) === getValue('filterPath', parent.itemData[0]) && parent.pathNames.length > 1) {
|
2642
|
-
parent.pathNames[parent.pathNames.length - 1] = parent.renameText;
|
2643
|
-
}
|
2644
2641
|
if (parent.activeModule === 'navigationpane') {
|
2645
2642
|
parent.pathId.pop();
|
2646
2643
|
parent.itemData = [getValue(parent.pathId[parent.pathId.length - 1], parent.feParent)];
|
2647
2644
|
read(parent, renameEndParent, getValue('filterPath', parent.renamedItem).replace(/\\/g, '/'));
|
2648
2645
|
parent.itemData[0] = parent.renamedItem;
|
2649
2646
|
read(parent, pathChanged, parent.path === '/' ? parent.path : getValue('filterPath', parent.renamedItem).replace(/\\/g, '/') + parent.renamedItem.name + '/');
|
2647
|
+
if (getValue('filterPath', parent.renamedItem) === getValue('filterPath', parent.itemData[0]) && parent.pathNames.length > 1) {
|
2648
|
+
parent.pathNames[parent.pathNames.length - 1] = parent.renameText;
|
2649
|
+
}
|
2650
2650
|
}
|
2651
2651
|
else {
|
2652
2652
|
parent.itemData = [getPathObject(parent)];
|