Fix inbox entry not being cleared after submission
This commit is contained in:
parent
2dfd7824e7
commit
2b66026683
|
@ -130,7 +130,7 @@ $(document).on "click", "button[name=ib-answer]", ->
|
||||||
inbox: true
|
inbox: true
|
||||||
success: (data, status, jqxhr) ->
|
success: (data, status, jqxhr) ->
|
||||||
if data.success
|
if data.success
|
||||||
$("div.inbox-box[data-id=#{iid}]").slideUp()
|
$("div.inbox-entry[data-id=#{iid}]").slideUp()
|
||||||
showNotification data.message, data.success
|
showNotification data.message, data.success
|
||||||
error: (jqxhr, status, error) ->
|
error: (jqxhr, status, error) ->
|
||||||
console.log jqxhr, status, error
|
console.log jqxhr, status, error
|
||||||
|
@ -162,7 +162,7 @@ $(document).on "click", "button[name=ib-destroy]", ->
|
||||||
id: iid
|
id: iid
|
||||||
success: (data, status, jqxhr) ->
|
success: (data, status, jqxhr) ->
|
||||||
if data.success
|
if data.success
|
||||||
$("div.inbox-box[data-id=#{iid}]").slideUp()
|
$("div.inbox-entry[data-id=#{iid}]").slideUp()
|
||||||
if document.getElementById('ib-delete-all')?
|
if document.getElementById('ib-delete-all')?
|
||||||
del_all_btn = ($ "button#ib-delete-all")
|
del_all_btn = ($ "button#ib-delete-all")
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue