diff --git a/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/AdvancedSearch/AdvancedSearchView.js b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/AdvancedSearch/AdvancedSearchView.js index e903479c2fb68e5e822d23991d7851f28afeb0da..cee65ded8e403185541182fb752aed47e955a812 100644 --- a/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/AdvancedSearch/AdvancedSearchView.js +++ b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/AdvancedSearch/AdvancedSearchView.js @@ -1114,12 +1114,20 @@ function AdvancedSearchView(advancedSearchController, advancedSearchModel) { columns.push({ label : "Size (bytes)", property : "size", - isExportable : false, + exportableProperty: DataGridExportOptions.EXPORTABLE_FIELD.SIZE, sortable : false, render : function(data, grid) { return data.size; } }); + columns.push({ + label : "Size", + property : "sizeHumanReadable", + sortable : false, + render : function(data, grid) { + return PrintUtil.renderNumberOfBytes(data.size); + } + }); } columns = columns.concat(_this.additionalColumns); diff --git a/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/ArchivingHelper/ArchivingHelperView.js b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/ArchivingHelper/ArchivingHelperView.js index 7cc6d1665443a169d26f9a2c44190cfa38261ec5..bf666d86389693cff7bddc7c8e29d6974a68b846 100644 --- a/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/ArchivingHelper/ArchivingHelperView.js +++ b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/ArchivingHelper/ArchivingHelperView.js @@ -76,15 +76,6 @@ function ArchivingHelperView(archivingHelperController, archivingHelperModel) { exportableProperty: DataGridExportOptions.EXPORTABLE_FIELD.SAMPLE, sortable : false }]; - searchView.additionalLastColumns = [{ - label : "Size", - property : "size", - exportableProperty: DataGridExportOptions.EXPORTABLE_FIELD.SIZE, - sortable : false, - render : function(data, grid) { - return PrintUtil.renderNumberOfBytes(data.size); - } - }]; searchView._paintRulesPanel($rulesPanel); searchView._$entityTypeDropdown.val("DATASET"); searchView._$entityTypeDropdown.trigger("change");