From c687951fa292b93ce9dc08a320d429a025629282 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Wed, 7 Oct 2015 21:01:51 +0000 Subject: [PATCH] webstaff: improve how egVolumeList opens the vol/copy editor Signed-off-by: Galen Charlton Signed-off-by: Kathy Lussier --- .../web/js/ui/default/staff/cat/services/holdings.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Open-ILS/web/js/ui/default/staff/cat/services/holdings.js b/Open-ILS/web/js/ui/default/staff/cat/services/holdings.js index 22018128a4..e80d712bb6 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/services/holdings.js +++ b/Open-ILS/web/js/ui/default/staff/cat/services/holdings.js @@ -304,7 +304,7 @@ function(egCore , $q) { return cp_id_list; } - $scope.edit_volumes = function (copies_too) { + var spawn_volume_editor = function (copies_too) { egCore.net.request( 'open-ils.actor', 'open-ils.actor.anon_cache.set_value', @@ -312,13 +312,14 @@ function(egCore , $q) { record_id: $scope.recordId, copies: gatherHoldingsIds(), hide_vols : false, - hide_copies : (copies_too) ? false : true + hide_copies : ((copies_too) ? false : true) } ).then(function(key) { if (key) { $modal.open({ templateUrl: './cat/share/t_embedded_volcopy', size: 'lg', + windowClass: 'eg-wide-modal', controller: ['$scope', '$modalInstance', function($scope, $modalInstance) { $scope.volcopy_url = @@ -332,8 +333,11 @@ function(egCore , $q) { } }); } + $scope.edit_volumes = function() { + spawn_volume_editor(false); + } $scope.edit_copies = function() { - $scope.edit_volumes(true); + spawn_volume_editor(true); } function load_holdings() { -- 2.43.2