Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 17f39e02

Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt

  • ID 17f39e02a0d2b7ceb565258861217fa7ba6bfbcf
  • Vorgänger 17cac1f6
  • Nachfolger 245d5036

client_js.js: Funktionen in namespace kivi verschoben

Unterschiede anzeigen:

SL/Template/Plugin/L.pm
185 185

  
186 186
  $url           = _J($url);
187 187
  $form_selector = _J($form_selector);
188
  my $onclick    = qq|submit_ajax_form('${url}', '${form_selector}')|;
188
  my $onclick    = qq|kivi.submit_ajax_form('${url}', '${form_selector}')|;
189 189

  
190 190
  return $self->button_tag($onclick, $text, @slurp);
191 191
}
......
580 580
Creates a HTML 'input type="button"' tag with a very specific onclick
581 581
handler that submits the form given by the jQuery selector
582 582
C<$form_selector> to the URL C<$url> (the actual JavaScript function
583
called for that is C<submit_ajax_form()> in C<js/client_js.js>). The
584
button's label will be C<$text>.
583
called for that is C<kivi.submit_ajax_form()> in
584
C<js/client_js.js>). The button's label will be C<$text>.
585 585

  
586 586
=item C<button_tag $onclick, $text, %attributes>
587 587

  

Auch abrufbar als: Unified diff