From: Galen Charlton Date: Fri, 5 May 2017 21:49:05 +0000 (-0400) Subject: webstaff: implement action to cancel creating new pattern X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6a0858532bf88ae5e23a4366d96073b6053659d8;p=working%2FEvergreen.git webstaff: implement action to cancel creating new pattern Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/templates/staff/serials/t_prediction_manager.tt2 b/Open-ILS/src/templates/staff/serials/t_prediction_manager.tt2 index c0ad70d99b..5a95ff121e 100644 --- a/Open-ILS/src/templates/staff/serials/t_prediction_manager.tt2 +++ b/Open-ILS/src/templates/staff/serials/t_prediction_manager.tt2 @@ -7,9 +7,9 @@ -
+
-
+
+
diff --git a/Open-ILS/web/js/ui/default/staff/serials/directives/prediction_manager.js b/Open-ILS/web/js/ui/default/staff/serials/directives/prediction_manager.js index 8066cbf38f..c707351dd8 100644 --- a/Open-ILS/web/js/ui/default/staff/serials/directives/prediction_manager.js +++ b/Open-ILS/web/js/ui/default/staff/serials/directives/prediction_manager.js @@ -65,13 +65,15 @@ function($scope , $q , egSerialsCoreSvc , egCore , egGridDataProvider , }); } + $scope.cancelNewScap = function() { + $scope.new_prediction = null; + } $scope.startNewScap = function() { $scope.new_prediction = egCore.idl.toTypedHash(new egCore.idl.scap()); $scope.new_prediction.type = 'basic'; $scope.new_prediction.active = true; $scope.new_prediction.create_date = new Date(); $scope.new_prediction.subscription = $scope.ssubId; - $scope.new_pred = {}; } $scope.importScapFromBibRecord = function() {