Update for printing
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 12 Dec 2018 20:01:29 +0000 (15:01 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 12 Dec 2018 20:01:29 +0000 (15:01 -0500)
Still have extra page but at least the links don't get urls after them.

views/front/itinerary/list.html

index b743ef3..f03d992 100644 (file)
@@ -85,7 +85,7 @@
             </div>
         </div>
     {/foreach}
-    <div id="PrintArea" class="glm-itinerary-list">
+    <div id="PrintArea" style="padding: 10px;" class="glm-itinerary-list">
         {foreach $members as $data}
             <div class="glm-itinerary-list-item">
                 <div class="glm-itinerary-breadcrumbs">
             }
             return false;
         });
+        {literal}
         $(".list-print").click(function(){
             var areaToPrint = $(this).attr('data-areaToPrint');
             var position = $(this).offset();
                 popWd:      800,       // popup window width
                 popX:       500,       // popup window screen X position
                 popY:       500,       // popup window screen Y position
-                popTitle:   'Invoice', // popup window title element
+                popTitle:   'Trip Planner List', // popup window title element
                 popClose:   true,      // popup window close after printing
                 extraCss:   '',        // Comma separated list of extra css to include
-                extraHead:  '',        // Comma separated list of extra elements to be appended to head tag
+                extraHead:  '<style>body { width: auto !important; height: auto; } a[href]:after { content: none !important; }</style>',        // Comma separated list of extra elements to be appended to head tag
                 strict:     false      // strict or looseTransitional html 4.01 document standard or undefined to not include at all only for popup option
             });
         });
+        {/literal}
 
         $('#toggle-map-view').on('click', function(){
             $('#glm-locationMap-container').toggleClass('glm-hidden');