LP1831785 (follow-up): simplifying static string binding, removing empty else statement
authorJane Sandberg <sandbej@linnbenton.edu>
Sat, 27 Jul 2019 17:50:40 +0000 (10:50 -0700)
committerJane Sandberg <sandbej@linnbenton.edu>
Tue, 30 Jul 2019 14:58:34 +0000 (07:58 -0700)
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts
Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.html

index 4a98fe3..1fe37b1 100644 (file)
@@ -223,7 +223,6 @@ export class ComboboxComponent implements OnInit {
         searchTerm = term;
         if (searchTerm === '_CLICK_' && this.asyncSupportsEmptyTermClick) {
             searchTerm = '';
-        } else {
         }
 
         return new Observable(observer => {
index d7cff9f..1b36ec8 100644 (file)
   <div class="col-lg-4">
   </div>
   <div class="col-lg-3">
-    <eg-combobox placeholder="Combobox with @idlClass = 'aou' @idlField='shortname'" [idlClass]="'aou'" [idlField]="'shortname'" [asyncSupportsEmptyTermClick]="true">
+    <eg-combobox placeholder="Combobox with @idlClass = 'aou' @idlField='shortname'" idlClass="aou" idlField="shortname" [asyncSupportsEmptyTermClick]="true">
     </eg-combobox>
   </div>
   <div class="col-lg-3">
-    <eg-combobox placeholder="Combobox with @idlClass = 'csp'" [idlClass]="'csp'" [asyncSupportsEmptyTermClick]="true">
+    <eg-combobox placeholder="Combobox with @idlClass = 'csp'" idlClass="csp" [asyncSupportsEmptyTermClick]="true">
     </eg-combobox>
   </div>
 </div>
   <div class="col-lg-4">
   </div>
   <div class="col-lg-3">
-    <eg-combobox placeholder="Combobox with @idlClass = 'aou'" [idlClass]="'aou'" [asyncSupportsEmptyTermClick]="true">
+    <eg-combobox placeholder="Combobox with @idlClass = 'aou'" idlClass="aou" [asyncSupportsEmptyTermClick]="true">
     </eg-combobox>
   </div>
   <div class="col-lg-3">