From: Galen Charlton Date: Thu, 25 Aug 2016 20:12:28 +0000 (-0400) Subject: set default value of 'Renewing?' to false when creating alert type X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a0269b87f75cb699c0deb1bf4cbe44117c55f459;p=working%2FEvergreen.git set default value of 'Renewing?' to false when creating alert type Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/web/js/ui/default/staff/admin/local/app.js b/Open-ILS/web/js/ui/default/staff/admin/local/app.js index bf1eb224e9..4462ce8917 100644 --- a/Open-ILS/web/js/ui/default/staff/admin/local/app.js +++ b/Open-ILS/web/js/ui/default/staff/admin/local/app.js @@ -58,6 +58,7 @@ angular.module('egLocalAdmin', createEditPrefetch: { ccs : { id : {'!=' : null} } }, + createDefaults : { 'in_renew' : 'f' }, createEditOrgExpand: ['scope_org'], createEditNullableBool : ['in_renew', 'at_circ', 'at_owning'] }); @@ -136,6 +137,7 @@ function($scope , $route , $location , egCore , $timeout , egConfirmDialog , $ui $scope.createEditPrefetch = $route.current.$$route.createEditPrefetch || {}; $scope.createEditOrgExpand = $route.current.$$route.createEditOrgExpand || []; $scope.createEditNullableBool = $route.current.$$route.createEditNullableBool || []; + $scope.createDefaults = $route.current.$$route.createDefaults || []; $scope.gridControls = { setQuery : function(q) { if (q) query = q; @@ -163,7 +165,7 @@ function($scope , $route , $location , egCore , $timeout , egConfirmDialog , $ui }); }); if ($scope.creating) { - $scope.record = {}; + $scope.record = $scope.createDefaults; } else { egCore.pcrud.retrieve($scope.baseFmClass, id).then(function(to_edit) { $scope.record = egCore.idl.toHash(to_edit);