webstaff: Use ng-show instead of ng-if to avoid an extra scope injection
authorMike Rylander <mrylander@gmail.com>
Thu, 12 Mar 2015 14:37:49 +0000 (10:37 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Wed, 19 Aug 2015 17:39:13 +0000 (13:39 -0400)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/src/templates/staff/cat/catalog/t_catalog.tt2

index 8a585d7..477e558 100644 (file)
   <div ng-show="record_tab == 'catalog'">
     <eg-embed-frame frame="opac_iframe" url="catalog_url" handlers="handlers" onchange="handle_page"></eg-embed-frame>
   </div>
-  <!-- ng-if the remaining tabs so they can be instantiated on demand -->
-  <div ng-if="record_tab == 'marc_edit'">
-    <eg-marc-edit-record dirty-flag="stop_unload" record-id="record_id"></eg-marc-edit-record>
+  <div ng-show="record_tab == 'marc_edit'">
+    <eg-marc-edit-record dirty-flag="stop_unload" record-id="record_id"/>
   </div>
+  <!-- ng-if the remaining tabs so they can be instantiated on demand -->
   <div ng-if="record_tab == 'marc_html'">
     <eg-record-html record-id="record_id"></eg-record-html>
   </div>