mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-04 03:36:44 +08:00
Merge pull request #8241 from andrej-scinote/aj_SCI_11571
Fix full view repository table on tasks data fetching [SCI-11571]
This commit is contained in:
commit
31de10d463
2 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
/* eslint-disable no-param-reassign, no-use-before-define */
|
||||
/* global DataTableHelpers PerfectScrollbar FilePreviewModal animateSpinner HelperModule
|
||||
/* global GLOBAL_CONSTANTS DataTableHelpers PerfectScrollbar FilePreviewModal animateSpinner HelperModule
|
||||
initAssignedTasksDropdown I18n prepareRepositoryHeaderForExport initReminderDropdown */
|
||||
|
||||
var MyModuleRepositories = (function() {
|
||||
|
@ -348,6 +348,8 @@ var MyModuleRepositories = (function() {
|
|||
json.state.columns.push({});
|
||||
json.state.ColReorder.push(json.state.ColReorder.length);
|
||||
}
|
||||
json.state.start = 0;
|
||||
json.state.length = GLOBAL_CONSTANTS.REPOSITORY_DEFAULT_PAGE_SIZE;
|
||||
callback(json.state);
|
||||
});
|
||||
},
|
||||
|
|
|
@ -20,6 +20,7 @@ class GlobalConstantsController < ApplicationController
|
|||
FILENAME_TRUNCATION_LENGTH: Constants::FILENAME_TRUNCATION_LENGTH,
|
||||
FILE_MAX_SIZE_MB: Rails.configuration.x.file_max_size_mb,
|
||||
REPOSITORY_LIST_ITEMS_PER_COLUMN: Constants::REPOSITORY_LIST_ITEMS_PER_COLUMN,
|
||||
REPOSITORY_DEFAULT_PAGE_SIZE: Constants::REPOSITORY_DEFAULT_PAGE_SIZE,
|
||||
REPOSITORY_CHECKLIST_ITEMS_PER_COLUMN: Constants::REPOSITORY_CHECKLIST_ITEMS_PER_COLUMN,
|
||||
REPOSITORY_STOCK_UNIT_ITEMS_PER_COLUMN: Constants::REPOSITORY_STOCK_UNIT_ITEMS_PER_COLUMN,
|
||||
HAS_UNSAVED_DATA_CLASS_NAME: 'has-unsaved-data',
|
||||
|
|
Loading…
Reference in a new issue