From: Kyle Huckins Date: Wed, 28 Nov 2018 22:10:24 +0000 (+0000) Subject: lp1777677 Show test notification buttons by retrieved data X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=446759787e8230baf48092930e202b4a6beef8e8;p=evergreen%2Ftadl.git lp1777677 Show test notification buttons by retrieved data - Prevents test notification buttons from displaying when email or sms data is input but no data exists on server. Signed-off-by: Kyle Huckins Signed-off-by: Terran McCanna Signed-off-by: Chris Sharp Signed-off-by: Galen Charlton --- 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 d147b45367..966f9bbf20 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 @@ -461,7 +461,7 @@ within the "form" by name for validation.
[% draw_field_label('au', 'email') %] [% draw_form_input('au', 'email', '', 'email') %] -
+
@@ -786,7 +786,7 @@ within the "form" by name for validation. ng-blur="handle_field_changed(user_settings, 'opac.default_sms_notify')" type='text'/>
-
+
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 0d7269bac1..e78cda9d8a 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 @@ -1370,6 +1370,8 @@ function($scope , $routeParams , $q , $uibModal , $window , egCore , // in standalone mode, we have no patronSvc var prs = patronRegSvc; $scope.patron = patron; + $scope.base_email = patron.email; + $scope.base_default_sms = prs.user_settings['opac.default_sms_notify'] $scope.field_doc = prs.field_doc; $scope.edit_profiles = prs.edit_profiles; $scope.edit_profile_entries = prs.edit_profile_entries;