ActionBar/Submit: externe ids erlauben
authorSven Schöling <s.schoeling@linet-services.de>
Wed, 26 Oct 2016 09:26:27 +0000 (11:26 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 28 Feb 2017 09:04:33 +0000 (10:04 +0100)
SL/Layout/ActionBar/Action.pm

index e733877..1ee9a3e 100644 (file)
@@ -47,8 +47,13 @@ sub p {
   SL::Presenter->get
 }
 
+sub init_params {
+  +{}
+}
+
 # unique id to tie div and javascript together
 sub init_id {
+  $_[0]->params->{id} //
   $_[0]->p->name_to_id('action[]')
 }