From 5828f336114b797b3a7d45682ef5edb9dc968410 Mon Sep 17 00:00:00 2001 From: Cesar Velez Date: Fri, 27 Jul 2018 11:21:25 -0400 Subject: [PATCH] LP#1739087 - add [x] to volcopy editor volume rows Enable newly created call numbers to be removable in VolCopyEditor. Signed-off by: Cesar Velez Signed-off-by: Jason Etheridge Signed-off-by: Galen Charlton --- .../web/js/ui/default/staff/cat/volcopy/app.js | 41 +++++++++++++++++++--- 1 file changed, 37 insertions(+), 4 deletions(-) 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 7ef69d4a67..00fdfef50d 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 @@ -493,7 +493,7 @@ function(egCore , $q) { '
{{empty_barcode_string}}
'+ ''+ '
'+ - '
'+ + '
'+ '', scope: { focusNext: "=", copy: "=", callNumber: "=", index: "@", record: "@" }, @@ -584,6 +584,7 @@ function(egCore , $q) { template: '
'+ '
'+ + '' + '
'+ + '
'+ '
'+ ''+ + 'focus-next="focusNextFirst" copies="copies" allcopies="allcopies" struct="struct">'+ ''+ '
'+ '
', @@ -989,6 +1018,10 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore , $scope.data.addCopy(cp); + // manually increase cn_count numeric input + var cn_spinner = $("input[name='cn_count_lib"+ newLib.id() +"']"); + cn_spinner.val(parseInt(cn_spinner.val()) + 1); + if (!$scope.defaults.classification) { egCore.org.settings( ['cat.default_classification_scheme'], -- 2.11.0