+<div id="contacts-actions">
+{{foreach $batch_actions as $n=>$l}}
+ <input class="batch-action" name="{{$n}}" value="{{$l}}" type="submit">
+ {{/foreach}}
+ </div>
+</form>
+<script>
+ $(document).ready(function() {
+ // javascript dialog to batch actions
+ $(".batch-action").click(function(e){
+ if (confirm($(this).attr('value')+" ?")) {
+ return true;
+ } else {
+ e.preventDefault();
+ return false;
+ }
+ });
+
+ // add javascript confirm dialog to "drop" links. Plain html url have "?confirm=1" to show confirmation form, we need to remove it
+ $(".drop").each(function() {
+ $(this).attr('href', $(this).attr('href').replace("confirm=1","") );
+ $(this).click(function(e){
+ if (confirm("{{$contact_drop_confirm}}")) {
+ return true;
+ } else {
+ e.preventDefault();
+ return false;
+ }
+ });
+
+ });
+ });
+ </script>
+
+{{$paginate nofilter}}