From 22135ed24647888bc1667c0d7c3f5485c817c0f6 Mon Sep 17 00:00:00 2001 From: Kyle Huckins Date: Mon, 18 Mar 2019 17:16:03 +0000 Subject: [PATCH] CAT-199 Save state of default browse dropdown - Ensure Default Browse Sort selector displays existing choice. Signed-off-by: Kyle Huckins Changes to be committed: modified: Open-ILS/web/js/ui/default/staff/admin/workstation/app.js --- Open-ILS/web/js/ui/default/staff/admin/workstation/app.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js b/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js index 1b0da00ab5..2322c89eec 100644 --- a/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js +++ b/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js @@ -206,6 +206,10 @@ function($scope , $window , $location , egCore , egConfirmDialog) { } }); + $scope.results_sort = 'pubdate'; + egCore.hatch.getItem('eg.search.browse_sort_default').then(function(val) { + $scope.results_sort = val; + }); $scope.$watch('results_sort', function(newVal, oldVal) { if (typeof newVal != 'undefined' && newVal != oldVal) { egCore.hatch.setItem('eg.search.browse_sort_default', newVal); -- 2.11.0