]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Layout/ActionBar/ScriptButton.pm
ActionBar: check confirm after checks
[mfinanz.git] / SL / Layout / ActionBar / ScriptButton.pm
index 47c1247af45289cd55c7b1b76942aa018c4b3a14..501c15d23e401f10e099aace54c87ef486846485 100644 (file)
@@ -3,12 +3,6 @@ package SL::Layout::ActionBar::ScriptButton;
 use strict;
 use parent qw(SL::Layout::ActionBar::Action);
 
 use strict;
 use parent qw(SL::Layout::ActionBar::Action);
 
-use JSON;
-
-use Rose::Object::MakeMethods::Generic (
-  'scalar --get_set_init' => [ qw(text function) ],
-);
-
 sub render {
   $_[0]->p->html_tag('div', $_[0]->text,
     id    => $_[0]->id,
 sub render {
   $_[0]->p->html_tag('div', $_[0]->text,
     id    => $_[0]->id,
@@ -16,11 +10,4 @@ sub render {
   );
 }
 
   );
 }
 
-sub script {
-  # store submit and form and stuff in data attribute
-  sprintf q|$('#%s').data('action', %s);|, $_[0]->id, JSON::to_json({
-    function => $_[0]->function,
-  });
-}
-
 1;
 1;