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 <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
<!-- field documentation img/link -->
<img ng-show="field_doc.[% cls %].[% field %]"
- ng-click="selected_field_doc=field_doc.[% cls %].[% field %]"
+ ng-click="set_selected_field_doc('[% cls %]','[% field %]')"
src='[% DOC_IMG %]'></img>
</div>
});
+ // 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;