mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 12:39:53 +01:00
Fix inbox entry not being cleared after submission
This commit is contained in:
parent
2dfd7824e7
commit
2b66026683
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue