X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FClientJS.pm;h=7eb092c4733c98c23ecc0779cbc4020aca76702f;hb=9b36c5639d01f1c9059381c12fac5d57ff614710;hp=96132cfb387fa816e95d1dd6cc803cb4a6207e1a;hpb=17f39e02a0d2b7ceb565258861217fa7ba6bfbcf;p=kivitendo-erp.git diff --git a/SL/ClientJS.pm b/SL/ClientJS.pm index 96132cfb3..7eb092c47 100644 --- a/SL/ClientJS.pm +++ b/SL/ClientJS.pm @@ -103,6 +103,8 @@ my %supported_methods = ( # ## other stuff ## redirect_to => 1, # window.location.href = + + reinit_widgets => 0, # kivi.reinit_widgets() ); sub AUTOLOAD { @@ -168,6 +170,7 @@ sub to_array { sub render { my ($self, $controller) = @_; + $self->reinit_widgets if $::request->presenter->need_reinit_widgets; return $controller->render(\$self->to_json, { type => 'json' }); }