From: Bill Erickson Date: Thu, 17 Dec 2015 02:11:44 +0000 (-0500) Subject: LP#1452950 patron reg. unload prompt stub X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a05d0181b384f5716a88b4d2b19c693d1f3fc0ec;p=evergreen%2Ftadl.git LP#1452950 patron reg. unload prompt stub Signed-off-by: Bill Erickson Signed-off-by: Galen Charlton --- 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 ed016fcc0c..2e5d932cb3 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 @@ -671,7 +671,7 @@ angular.module('egCoreMod') function PatronRegCtrl($scope, $routeParams, - $q, $modal, $window, egCore, patronSvc, patronRegSvc) { + $q, $modal, $window, egCore, patronSvc, patronRegSvc, egUnloadPrompt) { $scope.page_data_loaded = false; $scope.clone_id = $routeParams.clone_id; @@ -695,6 +695,9 @@ function PatronRegCtrl($scope, $routeParams, $scope.edit_passthru.vis_level = 0; // TODO: add save/clone handlers here + // TODO: call attach() on the first instance of a modified value + //egUnloadPrompt.attach($scope); + // Apply default values for new patrons during initial registration // prs is shorthand for patronSvc function set_new_patron_defaults(prs) { @@ -1131,5 +1134,5 @@ function PatronRegCtrl($scope, $routeParams, // This controller may be loaded from different modules (patron edit vs. // register new patron), so we have to inject the controller params manually. PatronRegCtrl.$inject = ['$scope', '$routeParams', '$q', '$modal', - '$window', 'egCore', 'patronSvc', 'patronRegSvc']; + '$window', 'egCore', 'patronSvc', 'patronRegSvc', 'egUnloadPrompt'];