LP1888723 Remove no longer needed (click) handler
authorBill Erickson <berickxx@gmail.com>
Wed, 17 Feb 2021 15:09:30 +0000 (10:09 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Sun, 15 Aug 2021 23:56:27 +0000 (19:56 -0400)
The holdings Edit link no longer includes a redirect and can be
opened/closed as expected via a regular href (routerLink).

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Ruth Frasur <rfrasur@library.in.gov>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/catalog/record/copies.component.ts

index bb53591..8bf4469 100644 (file)
@@ -36,8 +36,6 @@ export class CopiesComponent implements OnInit {
 
     cellTextGenerator: GridCellTextGenerator;
 
-    openHoldingsEditor: (item: number) => void;
-
     constructor(
         private course: CourseService,
         private net: NetService,
@@ -91,11 +89,6 @@ export class CopiesComponent implements OnInit {
                 this.copyGrid.reload();
             }
         });
-
-        this.openHoldingsEditor = (item: number) => {
-            window.open('/eg/staff/cat/item/' + item + '/edit', '_blank');
-        };
-
     }
 
     orgName(orgId: number): string {