From: Adam Bowling Date: Thu, 10 Jan 2019 07:12:28 +0000 (-0500) Subject: LP#1787479: Adds customization for multipage print label printing and fixes the issue X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=faed647a26b50499ce4cdfe43ed8f59d5ecf4d19;p=evergreen%2Fpines.git LP#1787479: Adds customization for multipage print label printing and fixes the issue with saving templates after the change to DB saving from local storage. Signed-off-by: Adam Bowling --- diff --git a/Open-ILS/web/js/ui/default/staff/cat/printlabels/app.js b/Open-ILS/web/js/ui/default/staff/cat/printlabels/app.js index 88ae5d055d..9907985aab 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/printlabels/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/printlabels/app.js @@ -325,21 +325,21 @@ function ($scope, $q, $window, $routeParams, $location, $timeout, egCore, egNet, $scope.fetchTemplates(true); $scope.applyTemplate = function (n) { - if (n) { - if ($scope.templates[n]) { + if (n) { + if ($scope.templates[n]) { $scope.print.cn_template_content = $scope.templates[n].cn_content; $scope.print.template_content = $scope.templates[n].content; $scope.print.template_context = $scope.templates[n].context; - for (var s in $scope.templates[n].settings) { - $scope.preview_scope.settings[s] = $scope.templates[n].settings[s]; + for (var s in $scope.templates[n].settings) { + $scope.preview_scope.settings[s] = $scope.templates[n].settings[s]; } - if ($scope.templates[n].toolbox_settings) { + if ($scope.templates[n].toolbox_settings) { $scope.preview_scope.toolbox_settings = $scope.templates[n].toolbox_settings; - $scope.create_print_label_table(); + $scope.create_print_label_table(); } egCore.hatch.setItem('cat.printlabels.default_template', n); - $scope.save_locally(); - } + $scope.save_locally(); + } } }