-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Result panel refactoring - add abstract class to override gridColumnConfig methods * Result panel refactoring - add ID filter for preselected export
- Loading branch information
Showing
4 changed files
with
95 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
src/Resources/public/js/searchConfig/resultAbstractPanel.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/** | ||
* Pimcore | ||
* | ||
* This source file is available under two different licenses: | ||
* - GNU General Public License version 3 (GPLv3) | ||
* - Pimcore Enterprise License (PEL) | ||
* Full copyright and license information is available in | ||
* LICENSE.md which is distributed with this source code. | ||
* | ||
* @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org) | ||
* @license http://www.pimcore.org/license GPLv3 and PEL | ||
*/ | ||
|
||
|
||
pimcore.registerNS("pimcore.bundle.advancedObjectSearch.searchConfig.resultAbstractPanel"); | ||
pimcore.bundle.advancedObjectSearch.searchConfig.resultAbstractPanel = Class.create(pimcore.object.helpers.gridTabAbstract, { | ||
systemColumns: ["id", "fullpath", "type", "subtype", "filename", "classname", "creationDate", "modificationDate"], | ||
noBatchColumns: [], | ||
batchAppendColumns: [], | ||
batchRemoveColumns: [], | ||
exportPrepareUrl: "/admin/bundle/advanced-object-search/admin/get-export-jobs", | ||
batchPrepareUrl: "/admin/bundle/advanced-object-search/admin/get-batch-jobs", | ||
|
||
getSaveDataCallback: null, | ||
gridConfigData: {}, | ||
|
||
portletMode: false, | ||
|
||
fieldObject: {}, | ||
|
||
getLayout: function (initialFilter) { | ||
}, | ||
|
||
updateGrid: function (classId) { | ||
}, | ||
|
||
createGrid: function (fromConfig, response, settings, save) { | ||
} | ||
}); | ||
|
||
/** | ||
* https://github.com/pimcore/advanced-object-search/issues/64 | ||
* TODO pimcore.object.helpers.gridcolumnconfig for BC reasons, to be removed with next major version | ||
*/ | ||
if (pimcore.object.helpers.gridcolumnconfig) { | ||
pimcore.bundle.advancedObjectSearch.searchConfig.resultAbstractPanel.addMethods(pimcore.object.helpers.gridcolumnconfig); | ||
} else { | ||
pimcore.bundle.advancedObjectSearch.searchConfig.resultAbstractPanel.addMethods(pimcore.element.helpers.gridColumnConfig); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters