LP#1806087 minor repairs
authorBill Erickson <berickxx@gmail.com>
Fri, 7 Dec 2018 15:41:26 +0000 (10:41 -0500)
committerBill Erickson <berickxx@gmail.com>
Mon, 7 Jan 2019 14:58:44 +0000 (09:58 -0500)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/staff/catalog/search-form.component.html
Open-ILS/src/eg2/src/app/staff/catalog/search-form.component.ts

index c548968..b0db7a3 100644 (file)
@@ -157,9 +157,9 @@ TODO focus search input
     </div>
   </div>
 
-  <div class="pt-2" *ngIf="showAdvanced()">
+  <div class="p-2 m-2" *ngIf="showAdvanced()">
     <ngb-tabset #searchTabs [activeId]="searchTab" (tabChange)="onTabChange($event)">
-      <ngb-tab title="Advanced Search Filters" i18n-title id="filters">
+      <ngb-tab title="Search Filters" i18n-title id="filters">
         <ng-template ngbTabContent>
           <div class="row mt-3">
             <div class="col-lg-2">
@@ -267,7 +267,7 @@ TODO focus search input
         <ng-template ngbTabContent>
           <div class="row mt-3">
             <div class="col-lg-12">
-              <div class="form-inline" 
+              <div class="form-inline mt-2
                 *ngFor="let q of searchContext.marcValue; let idx = index; trackBy:trackByIdx">
                 <label for="marc-tag-{{idx}}" i18n>Tag</label>
                 <input class="form-control ml-2" size="3" type="text" name="marc-tag-{{idx}}"
index 51ce08e..3d8a1ad 100644 (file)
@@ -56,7 +56,6 @@ export class SearchFormComponent implements OnInit, AfterViewInit {
             } else {
                 this.searchTab = 'filters';
             }
-            console.log('set tab to ' + this.searchTab);
         });
 
         this.refreshCopyLocations();
@@ -64,6 +63,8 @@ export class SearchFormComponent implements OnInit, AfterViewInit {
 
     onTabChange(evt: NgbTabChangeEvent) {
         this.searchTab = evt.nextId;
+
+        // Select a DOM node to focus when the tab changes.
         let selector;
         switch (this.searchTab) {
             case 'ident':