factor out onclick javascript
This commit is contained in:
parent
94fcd0cf59
commit
09449792fa
6 changed files with 16 additions and 11 deletions
2
templates/actionbutton.hamlet
Normal file
2
templates/actionbutton.hamlet
Normal file
|
@ -0,0 +1,2 @@
|
|||
<a class="#{buttonclass}" href="@{route}" onclick="(function( $ ) { $.post('@{route}'); })( jQuery ); return false;">
|
||||
<i class="#{iconclass}"></i> #{fromMaybe "" label}
|
Loading…
Add table
Add a link
Reference in a new issue