From 8044039d78d0b36db9786fbe16a24010a0734e91 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 24 Jan 2018 13:12:42 -0600 Subject: [PATCH] Add 'delete-instance' class to delete link when viewing a record so that JS can watch its click event --- tailbone/templates/master/view.mako | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailbone/templates/master/view.mako b/tailbone/templates/master/view.mako index cb7f9504..a5b81814 100644 --- a/tailbone/templates/master/view.mako +++ b/tailbone/templates/master/view.mako @@ -53,7 +53,7 @@
  • ${h.link_to("Edit this {}".format(model_title), action_url('edit', instance))}
  • % endif % if master.deletable and instance_deletable and request.has_perm('{}.delete'.format(permission_prefix)): -
  • ${h.link_to("Delete this {}".format(model_title), action_url('delete', instance))}
  • +
  • ${h.link_to("Delete this {}".format(model_title), action_url('delete', instance), class_='delete-instance')}
  • % endif % if master.creatable and request.has_perm('{}.create'.format(permission_prefix)): % if master.creates_multiple: