projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d3f708
)
Presenter::date_tag: Validierung sowohl nach Datum als auch übergebener Validierung
author
Moritz Bunkus
<m.bunkus@linet.de>
Fri, 27 Nov 2020 11:40:42 +0000
(12:40 +0100)
committer
Moritz Bunkus
<m.bunkus@linet.de>
Fri, 27 Nov 2020 11:48:55 +0000
(12:48 +0100)
SL/Presenter/Tag.pm
patch
|
blob
|
history
diff --git
a/SL/Presenter/Tag.pm
b/SL/Presenter/Tag.pm
index
2b45d97
..
8929dc5
100644
(file)
--- a/
SL/Presenter/Tag.pm
+++ b/
SL/Presenter/Tag.pm
@@
-370,10
+370,11
@@
sub date_tag {
$::request->layout->add_javascripts('kivi.Validator.js');
$::request->presenter->need_reinit_widgets($params{id});
+ $params{'data-validate'} = join(' ', "date", grep { $_ } (delete $params{'data-validate'}));
+
input_tag(
$name, blessed($value) ? $value->to_lxoffice : $value,
size => 11,
- "data-validate" => "date",
%params,
%class, @onchange,
);