Sha256: a45c983c9785e9873f078d6971441a3bfb852b85bbbc720b8f51300eafc0ebf8

Contents?: true

Size: 443 Bytes

Versions: 2

Compression:

Stored size: 443 Bytes

Contents

tr = '<%= dom_id(@check) %>'
$('#' + tr).replaceWith('<%= j render(partial: '/my_nagios/checks/check_row', locals: { check: @check, run_now: true }) %>')

tr = '<%= dom_id(@check) %>'
$('#' + tr).find('img.spinner').hide()

$('#' + tr).find('a.check_now').click (event) ->
  onclick_check_now(event)

onclick_check_now = (event) ->
  $(event.target).closest('tr').addClass('updating')
  $(event.target).closest('tr').find('img.spinner').show()

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
my_nagios-0.0.2 app/views/my_nagios/checks/run_now.js.coffee
my_nagios-0.0.1 app/views/my_nagios/checks/run_now.js.coffee