projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Deutscher Begriff 'Vertreter' in Locale-Aufruf entfernt
[kivitendo-erp.git]
/
templates
/
webpages
/
dunning
/
show_invoices.html
diff --git
a/templates/webpages/dunning/show_invoices.html
b/templates/webpages/dunning/show_invoices.html
index
99e2dfb
..
b7ee6ed
100644
(file)
--- a/
templates/webpages/dunning/show_invoices.html
+++ b/
templates/webpages/dunning/show_invoices.html
@@
-1,11
+1,8
@@
[%- USE T8 %]
[% USE HTML %]
[% USE L %]
[%- USE T8 %]
[% USE HTML %]
[% USE L %]
-[% L.javascript_tag('jquery.checkall') %]
[% SET all_active = 1 %][% FOREACH row = DUNNINGS %][% IF !row.active %][% SET all_active = 0 %][% LAST %][% END %][% END %]
[% SET all_email = 1 %][% FOREACH row = DUNNINGS %][% IF !row.email %][% SET all_email = 0 %][% LAST %][% END %][% END %]
[% SET all_active = 1 %][% FOREACH row = DUNNINGS %][% IF !row.active %][% SET all_active = 0 %][% LAST %][% END %][% END %]
[% SET all_email = 1 %][% FOREACH row = DUNNINGS %][% IF !row.email %][% SET all_email = 0 %][% LAST %][% END %][% END %]
-<body [% IF onload %] onload="[% onload %]"[% END %]>
-
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/dunning.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/dunning.js"></script>
@@
-77,7
+74,7
@@
<hr size=3 noshade>
<hr size=3 noshade>
- <input type="checkbox"
name="force_lang" size="6" value="1" onclick="document.getElementsByName('language_id')[0].disabled = !document.getElementsByName('force_lang')[0].checked;
">
+ <input type="checkbox"
id='force_lang' name="force_lang" size="6" value="1
">
[% 'Override invoice language' | $T8 %]
[% PRINT_OPTIONS %]
[% 'Override invoice language' | $T8 %]
[% PRINT_OPTIONS %]
@@
-95,5
+92,9
@@
[% UNLESS DEBUG_DUNNING %]onclick="this.disabled=true; this.value='[% 'The dunning process started' | $T8 %]'; document.Form.submit()"[% END %]>
</form>
[% UNLESS DEBUG_DUNNING %]onclick="this.disabled=true; this.value='[% 'The dunning process started' | $T8 %]'; document.Form.submit()"[% END %]>
</form>
-</body>
-</html>
+ <script type='text/javascript'>
+ $(function() {
+ $("select[name='language_id']").prop('disabled', $('#force_lang').prop('checked'));
+ $('#force_lang').checkall('select[name="language_id"]', 'disabled');
+ });
+ </script>