factor out onclick javascript

This commit is contained in:
Joey Hess 2012-08-08 17:07:38 -04:00
parent 94fcd0cf59
commit 09449792fa
6 changed files with 16 additions and 11 deletions

View file

@ -0,0 +1,2 @@
<a class="#{buttonclass}" href="@{route}" onclick="(function( $ ) { $.post('@{route}'); })( jQuery ); return false;">
<i class="#{iconclass}"></i> #{fromMaybe "" label}