Revision e14cb525
Von Sven Schöling vor etwa 12 Jahren hinzugefügt
bin/mozilla/ar.pl | ||
---|---|---|
219 | 219 |
|
220 | 220 |
my ($title, $readonly, $exchangerate, $rows); |
221 | 221 |
my ($notes, $department, $customer, $employee, $amount, $project); |
222 |
my ($onload); |
|
223 | 222 |
my ($ARselected); |
224 | 223 |
|
225 | 224 |
|
... | ... | |
326 | 325 |
qq|<script type="text/javascript" src="js/show_vc_details.js"></script>| . |
327 | 326 |
qq|<script type="text/javascript" src="js/follow_up.js"></script>|; |
328 | 327 |
|
329 |
$onload = qq|focus()|; |
|
330 |
|
|
331 | 328 |
# $amount = $locale->text('Amount'); |
332 | 329 |
# $project = $locale->text('Project'); |
333 | 330 |
|
... | ... | |
442 | 439 |
project_labels => \%project_labels, |
443 | 440 |
rows => $rows, |
444 | 441 |
ARselected => $ARselected, |
445 |
onload => $onload, |
|
446 | 442 |
title_str => $title, |
447 | 443 |
follow_up_trans_info => $follow_up_trans_info, |
448 | 444 |
}); |
... | ... | |
905 | 901 |
my $cgi = $::request->{cgi}; |
906 | 902 |
|
907 | 903 |
my ($customer, $department); |
908 |
my ($jsscript, $button1, $button2, $onload);
|
|
904 |
my ($jsscript, $button1, $button2); |
|
909 | 905 |
|
910 | 906 |
# setup customer selection |
911 | 907 |
$form->all_vc(\%myconfig, "customer", "AR"); |
bin/mozilla/ca.pl | ||
---|---|---|
154 | 154 |
|
155 | 155 |
$::form->{title} = $::locale->text('List Transactions') . " - " . $::locale->text('Account') . " $::form->{accno}"; |
156 | 156 |
|
157 |
my $onload = qq|focus()|; |
|
158 |
|
|
159 | 157 |
$::form->header; |
160 | 158 |
print $::form->parse_html_template('ca/list', { |
161 |
onload => $onload, |
|
162 | 159 |
year => DateTime->today->year, |
163 | 160 |
cash => $::instance_conf->get_accounting_method eq 'cash', |
164 | 161 |
}); |
bin/mozilla/cp.pl | ||
---|---|---|
132 | 132 |
$auth->assert('cash'); |
133 | 133 |
|
134 | 134 |
my ($vc, $arap, $exchangerate); |
135 |
my ($onload); |
|
136 | 135 |
|
137 | 136 |
if ($form->{ $form->{vc} } eq "") { |
138 | 137 |
map { $form->{"addr$_"} = "" } (1 .. 4); |
... | ... | |
167 | 166 |
$form->header; |
168 | 167 |
|
169 | 168 |
$arap = lc $form->{ARAP}; |
170 |
$onload = qq|focus()|; |
|
171 | 169 |
|
172 | 170 |
print $::form->parse_html_template('cp/form_header', { |
173 | 171 |
is_customer => $form->{vc} eq 'customer', |
174 | 172 |
is_receipt => $form->{type} eq 'receipt', |
175 |
onload => $onload, |
|
176 | 173 |
arap => $arap, |
177 | 174 |
vccontent => $vc, |
178 | 175 |
}); |
bin/mozilla/dn.pl | ||
---|---|---|
316 | 316 |
|
317 | 317 |
$form->header(); |
318 | 318 |
|
319 |
$form->{onload} = qq|focus()|; |
|
320 |
|
|
321 | 319 |
print $form->parse_html_template("dunning/search"); |
322 | 320 |
|
323 | 321 |
$main::lxdebug->leave_sub(); |
bin/mozilla/gl.pl | ||
---|---|---|
220 | 220 |
); |
221 | 221 |
$::form->{ALL_EMPLOYEES} = SL::DB::Manager::Employee->get_all(query => [ deleted => 0 ]); |
222 | 222 |
|
223 |
my $onload = "focus()"; |
|
224 |
|
|
225 | 223 |
$::form->header; |
226 | 224 |
print $::form->parse_html_template('gl/search', { |
227 |
onload => $onload, |
|
228 | 225 |
department_label => sub { ("$_[0]{description}--$_[0]{id}")x2 }, |
229 | 226 |
employee_label => sub { "$_[0]{id}--$_[0]{name}" }, |
230 | 227 |
}); |
bin/mozilla/rp.pl | ||
---|---|---|
151 | 151 |
|
152 | 152 |
$::form->get_lists("projects" => { "key" => "ALL_PROJECTS", "all" => 1 }); |
153 | 153 |
|
154 |
my $onload = qq|focus()|; |
|
155 |
|
|
156 | 154 |
my $is_projects = $::form->{report} eq "projects"; |
157 | 155 |
my $is_income_statement = $::form->{report} eq "income_statement"; |
158 | 156 |
my $is_bwa = $::form->{report} eq "bwa"; |
... | ... | |
198 | 196 |
vc => $vc, |
199 | 197 |
label => $label, |
200 | 198 |
year => DateTime->today->year, |
201 |
onload => $onload, |
|
202 | 199 |
nextsub => $nextsub, |
203 | 200 |
accrual => $::instance_conf->get_accounting_method ne 'cash', |
204 | 201 |
cash => $::instance_conf->get_accounting_method eq 'cash', |
bin/mozilla/wh.pl | ||
---|---|---|
795 | 795 |
$form->{jsscript} = 1; |
796 | 796 |
|
797 | 797 |
# $form->{fokus} = "partnumber"; |
798 |
# $form->{onload} .= "focus();"; |
|
799 | 798 |
$form->{title} = $locale->text("Report about warehouse contents"); |
800 | 799 |
|
801 | 800 |
$form->header(); |
templates/webpages/ap/search.html | ||
---|---|---|
171 | 171 |
<br> |
172 | 172 |
<input class=submit type=submit name=action value="[% 'Continue' | $T8 %]"> |
173 | 173 |
</form> |
174 |
<script type="text/javascript"> |
|
175 |
<!-- |
|
176 |
$(document).ready(function(){ |
|
177 |
focus(); |
|
178 |
}) |
|
179 |
//--> |
|
180 |
</script> |
templates/webpages/gl/form_header.html | ||
---|---|---|
2 | 2 |
[%- USE LxERP %] |
3 | 3 |
[%- USE T8 %] |
4 | 4 |
[%- USE L %] |
5 |
<body onLoad="focus()"> |
|
6 |
|
|
7 | 5 |
<script type="text/javascript"> |
8 | 6 |
<!-- |
9 | 7 |
function setTaxkey(row) { |
templates/webpages/ir/form_header.html | ||
---|---|---|
194 | 194 |
[% IF creditwarning != '' %] |
195 | 195 |
alert('[% 'Credit Limit exceeded!!!' | $T8 %]'); |
196 | 196 |
[% ELSE %] |
197 |
focus(); |
|
198 | 197 |
[% END %] |
199 | 198 |
}); |
200 | 199 |
function set_duedate() { |
templates/webpages/is/form_header.html | ||
---|---|---|
253 | 253 |
[% ELSIF creditwarning != '' %] |
254 | 254 |
alert('[% 'Credit Limit exceeded!!!' | $T8 %]'); |
255 | 255 |
[% ELSE %] |
256 |
focus(); |
|
257 | 256 |
[% END %] |
258 | 257 |
}); |
259 | 258 |
function set_duedate() { |
Auch abrufbar als: Unified diff
Aufrufe von focus() entfernt.
Diese Funktion ist die interne javascript focus Funktion, die ohne Argument garkeinen Sinn macht. Die Lx-Office Version heisst fokus.