Fix inbox entry not being cleared after submission

This commit is contained in:
Georg Gadinger 2020-05-09 14:46:47 +02:00
parent 2dfd7824e7
commit 2b66026683

View file

@ -130,7 +130,7 @@ $(document).on "click", "button[name=ib-answer]", ->
inbox: true
success: (data, status, jqxhr) ->
if data.success
$("div.inbox-box[data-id=#{iid}]").slideUp()
$("div.inbox-entry[data-id=#{iid}]").slideUp()
showNotification data.message, data.success
error: (jqxhr, status, error) ->
console.log jqxhr, status, error
@ -162,7 +162,7 @@ $(document).on "click", "button[name=ib-destroy]", ->
id: iid
success: (data, status, jqxhr) ->
if data.success
$("div.inbox-box[data-id=#{iid}]").slideUp()
$("div.inbox-entry[data-id=#{iid}]").slideUp()
if document.getElementById('ib-delete-all')?
del_all_btn = ($ "button#ib-delete-all")
else