mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 05:02:50 +08:00
Fix save and load of folder checkbox in filters [SCI-8598]
This commit is contained in:
parent
5afe02552f
commit
f344b72583
1 changed files with 2 additions and 2 deletions
|
@ -577,7 +577,7 @@ var ProjectsIndex = (function() {
|
||||||
createdOnFromFilter: selectDate($createdOnFromFilter),
|
createdOnFromFilter: selectDate($createdOnFromFilter),
|
||||||
createdOnToFilter: selectDate($createdOnToFilter),
|
createdOnToFilter: selectDate($createdOnToFilter),
|
||||||
membersFilter: dropdownSelector.getData($('.members-filter')),
|
membersFilter: dropdownSelector.getData($('.members-filter')),
|
||||||
lookInsideFolders: $foldersCB.prop('checked') ? 'true' : '',
|
lookInsideFolders: !!$foldersCB.prop('checked'),
|
||||||
archivedOnFromFilter: selectDate($archivedOnFromFilter),
|
archivedOnFromFilter: selectDate($archivedOnFromFilter),
|
||||||
archivedOnToFilter: selectDate($archivedOnToFilter),
|
archivedOnToFilter: selectDate($archivedOnToFilter),
|
||||||
projectsViewSearch: $textFilter.val()
|
projectsViewSearch: $textFilter.val()
|
||||||
|
@ -589,7 +589,7 @@ var ProjectsIndex = (function() {
|
||||||
|
|
||||||
$createdOnFromFilter.val(currentFilters.createdOnFromFilter);
|
$createdOnFromFilter.val(currentFilters.createdOnFromFilter);
|
||||||
$createdOnToFilter.val(currentFilters.createdOnToFilter);
|
$createdOnToFilter.val(currentFilters.createdOnToFilter);
|
||||||
$foldersCB.val(currentFilters.lookInsideFolders);
|
$foldersCB.attr('checked', currentFilters.lookInsideFolders);
|
||||||
dropdownSelector.setData($('.members-filter'), currentFilters.membersFilter);
|
dropdownSelector.setData($('.members-filter'), currentFilters.membersFilter);
|
||||||
$archivedOnFromFilter.val(currentFilters.archivedOnFromFilter);
|
$archivedOnFromFilter.val(currentFilters.archivedOnFromFilter);
|
||||||
$archivedOnToFilter.val(currentFilters.archivedOnToFilter);
|
$archivedOnToFilter.val(currentFilters.archivedOnToFilter);
|
||||||
|
|
Loading…
Reference in a new issue