projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CustomerVendor: vergessenes run_before ergänzt
[kivitendo-erp.git]
/
SL
/
ClientJS.pm
diff --git
a/SL/ClientJS.pm
b/SL/ClientJS.pm
index
96132cf
..
7eb092c
100644
(file)
--- a/
SL/ClientJS.pm
+++ b/
SL/ClientJS.pm
@@
-103,6
+103,8
@@
my %supported_methods = (
# ## other stuff ##
redirect_to => 1, # window.location.href = <TARGET>
# ## other stuff ##
redirect_to => 1, # window.location.href = <TARGET>
+
+ reinit_widgets => 0, # kivi.reinit_widgets()
);
sub AUTOLOAD {
);
sub AUTOLOAD {
@@
-168,6
+170,7
@@
sub to_array {
sub render {
my ($self, $controller) = @_;
sub render {
my ($self, $controller) = @_;
+ $self->reinit_widgets if $::request->presenter->need_reinit_widgets;
return $controller->render(\$self->to_json, { type => 'json' });
}
return $controller->render(\$self->to_json, { type => 'json' });
}