From b40e2b445ebd9242b12cc0cb50b17e54454a4ace Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 8 Oct 2015 14:46:33 +0000 Subject: [PATCH] webstaff: another fix to focus-on-new-MARC-field Signed-off-by: Galen Charlton Signed-off-by: Kathy Lussier --- Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js b/Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js index 65640da54a..64a185aa2e 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js +++ b/Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js @@ -664,7 +664,7 @@ angular.module('egMarcMod', ['egCoreMod', 'ui.bootstrap']) var element = $(e.target); var index_field = e.data.scope.field.position; - var new_field_index = index_field + 1; + var new_field_index = index_field; var new_field = new MARC21.Field({ tag : '999', @@ -681,6 +681,7 @@ angular.module('egMarcMod', ['egCoreMod', 'ui.bootstrap']) e.data.scope.field, new_field ); + new_field_index++; } $scope.current_event_target = 'r' + $scope.recordId + -- 2.11.0