From: Sven Schöling Date: Fri, 18 Nov 2011 16:05:06 +0000 (+0100) Subject: CGI::Ajax aus am/list_accounts entfernt. X-Git-Tag: release-2.7.0beta1~172 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=a871ab4c8f39081adf0d850d26d7dce44636355c;p=kivitendo-erp.git CGI::Ajax aus am/list_accounts entfernt. --- diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl index b6996d169..04b0e9adc 100644 --- a/bin/mozilla/am.pl +++ b/bin/mozilla/am.pl @@ -43,7 +43,6 @@ use SL::USTVA; use SL::Iconv; use SL::TODO; use SL::Printer; -use CGI::Ajax; use CGI; require "bin/mozilla/common.pl"; @@ -495,15 +494,6 @@ sub list_account { $ca->{link_edit_account} = $link_edit_account . '&id=' . E($ca->{id}); } - # Ajax - my $pjx = new CGI::Ajax('list_account_details' => build_std_url('action=list_account_details')); - - # Eneable AJAX debuging - #$pjx->DEBUG(1); - #$pjx->JSDEBUG(1); - - push(@ { $form->{AJAX} }, $pjx); - $form->use_stylesheet("list_accounts.css"); $form->{title} = $locale->text('Chart of Accounts'); @@ -586,9 +576,8 @@ sub list_account_details { } $form->{title} = $locale->text('Chart of Accounts'); - $form->header(); - print $form->parse_html_template('am/list_account_details'); + print $form->ajax_response_header, $form->parse_html_template('am/list_account_details'); $main::lxdebug->leave_sub(); diff --git a/templates/webpages/am/list_accounts.html b/templates/webpages/am/list_accounts.html index 8392bf55f..358f18f51 100644 --- a/templates/webpages/am/list_accounts.html +++ b/templates/webpages/am/list_accounts.html @@ -1,11 +1,7 @@ [%- USE T8 %] -[% USE HTML %] - -

- -
[% title %]
- -
+[%- USE HTML %] + +

[% title %]

@@ -18,49 +14,47 @@ - - - - - + + - [% SET row_odd = '1' %][% FOREACH row = CA %] - - [% IF row.heading %] - - - +[%- FOREACH row = CA %] + [%- IF row.heading %] + + + - - [% ELSE %] - - - - - - - - - - + [% ELSE %] + + + + + - - + + - - [% END %] - - [% END %] + [% END %] +[% END %]
[% 'Account' | $T8 %][% 'Description (Click on Description for details)' | $T8 %][% 'Debit' | $T8 %][% 'Credit' | $T8 %]
[% 'Account' | $T8 %] + [% 'Description (Click on Description for details)' | $T8 %] + [% 'Debit' | $T8 %] + [% 'Credit' | $T8 %]
[% HTML.escape(row.accno) %][% HTML.escape(row.description) %]
[% row.accno | html %][% row.description | html %]
[% row.accno | html %][% row.description | html %][% row.debit | html %][% row.credit | html %]
+ + +