From 6a0858532bf88ae5e23a4366d96073b6053659d8 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 5 May 2017 17:49:05 -0400 Subject: [PATCH] webstaff: implement action to cancel creating new pattern Signed-off-by: Galen Charlton --- Open-ILS/src/templates/staff/serials/t_prediction_manager.tt2 | 5 +++-- .../web/js/ui/default/staff/serials/directives/prediction_manager.js | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) 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() { -- 2.11.0