Merge branch 'moderation' of git.rrerr.net:justask/justask into moderation

This commit is contained in:
Andreas N 2014-12-27 15:13:05 +01:00
commit c7c10b43b9
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
$(document).on "click", "button[name=ab-destroy]", -> $(document).on "click", "a[data-action=ab-destroy]", (ev) ->
ev.preventDefault()
if confirm 'Are you sure?' if confirm 'Are you sure?'
btn = $(this) btn = $(this)
btn.button "loading" btn.button "loading"

View File

@ -23,7 +23,7 @@
%ul.dropdown-menu.dropdown-menu-right{role: :menu} %ul.dropdown-menu.dropdown-menu-right{role: :menu}
- if privileged? a.user - if privileged? a.user
%li.text-danger %li.text-danger
%a{href: '#', name: 'ab-destroy', data: { a_id: a.id }} %a{href: '#', data: { a_id: a.id, action: 'ab-destroy' }}
%i.fa.fa-trash-o %i.fa.fa-trash-o
Delete Delete
%li %li