Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 6c0032c7

Von Sven Schöling vor etwa 1 Jahr hinzugefügt

  • ID 6c0032c716231d72f4d070f0d337b6e8db916fa7
  • Vorgänger 5c4cba38
  • Nachfolger e58ce05b

ckeditor5: add_javascript in bin/mozilla controllern entfernt

Die werden jetzt alle über den P.textarea eingebunden

Unterschiede anzeigen:

bin/mozilla/am.pl
672 672
  $form->{title}               = $locale->text('Edit Preferences for #1', $::myconfig{login});
673 673
  $form->{follow_up_notify_by_email} = $myconfig{follow_up_notify_by_email};
674 674

  
675
  $::request->{layout}->use_javascript("${_}.js") for qw(jquery.multiselect2side ckeditor/ckeditor ckeditor/adapters/jquery);
675
  $::request->{layout}->use_javascript("${_}.js") for qw(jquery.multiselect2side);
676 676

  
677 677
  setup_am_config_action_bar();
678 678
  $form->header();
bin/mozilla/dn.pl
321 321
  $form->{"title"} = $locale->text("Set eMail text");
322 322
  $form->header(
323 323
    no_layout       => 1,
324
    use_javascripts => [ qw(ckeditor/ckeditor ckeditor/adapters/jquery) ],
324
    use_javascripts => [],
325 325
  );
326 326
  print($form->parse_html_template("dunning/set_email"));
327 327

  
bin/mozilla/do.pl
551 551
  $form->{follow_up_trans_info} = $form->{donumber} .'('. $form->{VC_OBJ}->name .')' if $form->{VC_OBJ};
552 552
  $form->{longdescription_dialog_size_percentage} = SL::Helper::UserPreferences::DisplayPreferences->new()->get_longdescription_dialog_size_percentage();
553 553

  
554
  $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.File kivi.MassDeliveryOrderPrint kivi.SalesPurchase kivi.Part kivi.CustomerVendor kivi.Validator ckeditor/ckeditor ckeditor/adapters/jquery kivi.io));
554
  $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.File kivi.MassDeliveryOrderPrint kivi.SalesPurchase kivi.Part kivi.CustomerVendor kivi.Validator kivi.io));
555 555

  
556 556
  setup_do_action_bar();
557 557

  
bin/mozilla/generictranslations.pl
183 183
  setup_generictranslations_edit_email_strings_action_bar();
184 184

  
185 185
  $form->{title} = $locale->text('Edit preset email strings');
186
  $::request->{layout}->use_javascript(map { "${_}.js" } qw(ckeditor/ckeditor ckeditor/adapters/jquery));
187 186
  $form->header();
188 187
  print $form->parse_html_template('generictranslations/edit_email_strings',{ 'MAIL_STRINGS' => \%mail_strings });
189 188

  
bin/mozilla/ir.pl
522 522
  $TMPL_VAR->{payment_terms_obj} = get_payment_terms_for_invoice();
523 523
  $form->{duedate}             = $TMPL_VAR->{payment_terms_obj}->calc_date(reference_date => $form->{invdate}, due_date => $form->{duedate})->to_kivitendo if $TMPL_VAR->{payment_terms_obj};
524 524

  
525
  $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.Draft kivi.File kivi.SalesPurchase kivi.Part kivi.CustomerVendor kivi.Validator ckeditor/ckeditor ckeditor/adapters/jquery kivi.io autocomplete_project client_js autocomplete_chart));
525
  $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.Draft kivi.File kivi.SalesPurchase kivi.Part kivi.CustomerVendor kivi.Validator kivi.io autocomplete_project client_js autocomplete_chart));
526 526

  
527 527
  setup_ir_action_bar($TMPL_VAR);
528 528

  
bin/mozilla/is.pl
694 694
  ), @custom_hiddens,
695 695
  map { $_.'_rate', $_.'_description', $_.'_taxnumber', $_.'_tax_id' } split / /, $form->{taxaccounts}];
696 696

  
697
  $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.Draft kivi.File kivi.SalesPurchase kivi.Part kivi.CustomerVendor kivi.Validator ckeditor/ckeditor ckeditor/adapters/jquery kivi.io client_js));
697
  $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.Draft kivi.File kivi.SalesPurchase kivi.Part kivi.CustomerVendor kivi.Validator kivi.io client_js));
698 698

  
699 699
  $TMPL_VAR{payment_terms_obj} = get_payment_terms_for_invoice();
700 700
  $form->{duedate}             = $TMPL_VAR{payment_terms_obj}->calc_date(reference_date => $form->{invdate}, due_date => $form->{duedate})->to_kivitendo if $TMPL_VAR{payment_terms_obj};
bin/mozilla/oe.pl
644 644
    }
645 645
  }
646 646

  
647
  $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.SalesPurchase kivi.File kivi.Part kivi.CustomerVendor kivi.Validator show_form_details show_history show_vc_details ckeditor/ckeditor ckeditor/adapters/jquery kivi.io));
647
  $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.SalesPurchase kivi.File kivi.Part kivi.CustomerVendor kivi.Validator show_form_details show_history show_vc_details kivi.io));
648 648

  
649 649

  
650 650
  # original snippets:
bin/mozilla/rp.pl
1005 1005
  my $locale   = $main::locale;
1006 1006
  my $cgi      = $::request->{cgi};
1007 1007

  
1008
  $::request->{layout}->use_javascript("${_}.js") for qw(ckeditor/ckeditor ckeditor/adapters/jquery);
1009

  
1010 1008
  my $report = SL::ReportGenerator->new(\%myconfig, $form);
1011 1009

  
1012 1010
  my @columns = qw(statement ct invnumber transdate duedate amount open datepaid current_open type);

Auch abrufbar als: Unified diff