app/assets/javascripts/effective_datatables/flash.js.coffee in effective_datatables-4.3.13 vs app/assets/javascripts/effective_datatables/flash.js.coffee in effective_datatables-4.3.14
- old
+ new
@@ -5,11 +5,10 @@
if status == 'danger'
message = 'Error: ' + message
$processing = $(@table().node()).siblings('.dataTables_processing')
- $processing.removeClass('alert-success alert-info alert-warning alert-danger alert-error')
if status.length > 0
$processing.addClass("alert-#{status}")
$processing.html(message).show()
@@ -18,10 +17,12 @@
clearTimeout(timeout) if timeout
delay = (if status == 'danger' then 4000 else 1500)
$processing.html(message).data('timeout', setTimeout( =>
- $processing.html('Processing...').hide()
+ $processing.html('Processing...')
+ $processing.removeClass('alert-success alert-info alert-warning alert-danger alert-error')
+ $processing.hide()
@context[0].oFeatures.bProcessing = true
, delay)
)
return @