From 8fc6640208762cd1c0fe2df7e137533f5e5cd403 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Wed, 4 May 2016 15:04:23 -0400 Subject: [PATCH] webstaff work log: fix opening new windows Signed-off-by: Galen Charlton --- Open-ILS/web/js/ui/default/staff/admin/workstation/log.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Open-ILS/web/js/ui/default/staff/admin/workstation/log.js b/Open-ILS/web/js/ui/default/staff/admin/workstation/log.js index b9fe1dbd91..4f8ec28d1d 100644 --- a/Open-ILS/web/js/ui/default/staff/admin/workstation/log.js +++ b/Open-ILS/web/js/ui/default/staff/admin/workstation/log.js @@ -18,8 +18,8 @@ angular.module('egWorkLogApp', }) .controller('WorkLogCtrl', - ['$scope','$q','$routeParams','$window','$location','$timeout','egCore','egGridDataProvider','egWorkLog', -function($scope , $q , $routeParams , $window , $location , $timeout , egCore , egGridDataProvider , egWorkLog ) { + ['$scope','$q','$routeParams','$window','$timeout','egCore','egGridDataProvider','egWorkLog', +function($scope , $q , $routeParams , $window , $timeout , egCore , egGridDataProvider , egWorkLog ) { var work_log_entries = []; var patron_log_entries = []; @@ -34,9 +34,7 @@ function($scope , $q , $routeParams , $window , $location , $timeout , egCore , if (!angular.isArray(log_entries)) log_entries = [log_entries]; angular.forEach(log_entries, function(log_entry) { $window.open( - $location.path( - '/cat/item/' + log_entry.item_id - ).absUrl(), + egCore.env.basePath + '/cat/item/' + log_entry.item_id, '_blank' ).focus(); }); @@ -51,9 +49,8 @@ function($scope , $q , $routeParams , $window , $location , $timeout , egCore , if (!angular.isArray(log_entries)) log_entries = [log_entries]; angular.forEach(log_entries, function(log_entry) { $window.open( - $location.path( - '/circ/patron/' + log_entry.patron_id + '/checkout' - ).absUrl(), + egCore.env.basePath + + '/circ/patron/' + log_entry.patron_id + '/checkout', '_blank' ).focus(); }); -- 2.11.0