From 8fab469efa6f4c67cf9110db353be530512b7b1c Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 8 Oct 2015 14:43:29 +0000 Subject: [PATCH] webstaff: fix setting focus when inserting a new MARC field Signed-off-by: Galen Charlton Signed-off-by: Kathy Lussier --- Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 734b63d9b5..65640da54a 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_field + 1; + var new_field_index = index_field + 1; var new_field = new MARC21.Field({ tag : '999', @@ -684,7 +684,7 @@ angular.module('egMarcMod', ['egCoreMod', 'ui.bootstrap']) } $scope.current_event_target = 'r' + $scope.recordId + - 'f' + new_field + 'tag'; + 'f' + new_field_index + 'tag'; $scope.current_event_target_cursor_pos = 0; $scope.current_event_target_cursor_pos_end = 3; -- 2.11.0