From e8f4c2662ac962af09f4349344e1f01c5a988ccb Mon Sep 17 00:00:00 2001 From: nilsding Date: Sun, 21 Dec 2014 16:40:10 +0100 Subject: [PATCH] goddamnit Karim --- app/assets/javascripts/inbox.coffee | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/assets/javascripts/inbox.coffee b/app/assets/javascripts/inbox.coffee index 39c32445..32abdec6 100644 --- a/app/assets/javascripts/inbox.coffee +++ b/app/assets/javascripts/inbox.coffee @@ -8,6 +8,10 @@ success: (data, status, jqxhr) -> if data.success ($ "div#entries").prepend(data.render) # TODO: slideDown or something + # GitHub issue #26: + del_all_btn = ($ "button#ib-delete-all") + del_all_btn.removeAttr 'disabled' + del_all_btn[0].dataset.ibCount = 1 error: (jqxhr, status, error) -> console.log jqxhr, status, error showNotification "An error occurred, a developer should check the console for details", false