Refactoring: JavaScript-Dateien über Layout-Objekt hinzufügen
authorMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 15 Jan 2014 12:04:17 +0000 (13:04 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 15 Jan 2014 12:04:40 +0000 (13:04 +0100)
bin/mozilla/oe.pl

index 92ce872..8a8e6d4 100644 (file)
@@ -429,10 +429,7 @@ sub form_header {
     }
   }
 
-  $form->{javascript} .= qq|<script type="text/javascript" src="js/show_form_details.js"></script>|;
-  $form->{javascript} .= qq|<script type="text/javascript" src="js/show_history.js"></script>|;
-  $form->{javascript} .= qq|<script type="text/javascript" src="js/show_vc_details.js"></script>|;
-  $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.SalesPurchase));
+  $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.SalesPurchase show_form_details show_history show_vc_details));
 
   $form->header;
   if ($form->{CFDD_shipto} && $form->{CFDD_shipto_id} ) {