From ae707cf1753728007e4f6811240e89cac9a9941c Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Sat, 31 Oct 2015 13:03:31 -0400 Subject: [PATCH] LP#1452950 Field doc display repair Set the current field doc via function instead of directly within the ng-click handler. For unknown reasons, the direct approach was not working with addresses. Signed-off-by: Bill Erickson Signed-off-by: Galen Charlton --- Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 | 2 +- Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 index f8186e4160..9caf5e73ae 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 @@ -42,7 +42,7 @@ diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js b/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js index 298d8cc3e3..63ab0c4a38 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js @@ -624,6 +624,11 @@ function PatronRegCtrl($scope, $routeParams, }); + // update the currently displayed field documentation + $scope.set_selected_field_doc = function(cls, field) { + $scope.selected_field_doc = $scope.field_doc[cls][field]; + } + // returns the tree depth of the selected profile group tree node. $scope.pgt_depth = function(grp) { var d = 0; -- 2.11.0