Merge branch 'moderation' of git.rrerr.net:justask/justask into moderation
This commit is contained in:
commit
c7c10b43b9
|
@ -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"
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue