Fixed active status switching for object view type

Fixed active status switching for object view type
This commit is contained in:
cp6 2021-01-30 11:23:18 +11:00
parent c882d47026
commit 00039c4d08

View File

@ -348,6 +348,8 @@ $(document).on("click", "#viewSwitcherIcon", function () {
} }
icon.removeClass("fa-table"); icon.removeClass("fa-table");
icon.addClass("fa-th"); icon.addClass("fa-th");
$("#tableViewDiv").addClass("active");
$("#cardsViewDiv").removeClass("active");
$("#cardsViewDiv").hide(); $("#cardsViewDiv").hide();
$("#tableViewDiv").show(); $("#tableViewDiv").show();
$('#viewSwitchIcon').prop('title', 'Switch to cards'); $('#viewSwitchIcon').prop('title', 'Switch to cards');