From f882dae5c875ce11f8cdeff046ddb1928af7c4fd Mon Sep 17 00:00:00 2001 From: Adam Bowling Date: Thu, 10 Jan 2019 02:12:28 -0500 Subject: [PATCH] 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 --- Open-ILS/web/js/ui/default/staff/cat/printlabels/app.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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(); + } } } -- 2.11.0