From: Galen Charlton Date: Tue, 26 Jan 2016 18:06:14 +0000 (-0500) Subject: webstaff: save copy templates now unconditional X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fdc6c6b5b4b95a79a52d6ddb26c7a191ad1deeb6;p=working%2FEvergreen.git webstaff: save copy templates now unconditional The save copy templates button in the volume/copy editor no longer requires that a working template be active; this way, users can save the set of templates after an import without having to select one of them first. Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js index cfd974a268..7b72add017 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js @@ -1620,6 +1620,10 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore , $scope.$parent.fetchTemplates(); $scope.dirty = false; + } else { + // save all templates, as we might do after an import + egCore.hatch.setItem('cat.copy.templates', $scope.templates); + $scope.$parent.fetchTemplates(); } }