Sha256: 10092adc9a0ed805f9724cff542d27bf519d309a5bc5b3ca95787d91b228287e

Contents?: true

Size: 1022 Bytes

Versions: 10

Compression:

Stored size: 1022 Bytes

Contents

@initialize_links = ->
  $('.actions a').on 'click', (e)->
    e.preventDefault()
    e.stopPropagation()
    ids = $("input[type='checkbox'][name='ids[]']").serializeArray().map((item)-> item.value)
    return if ids.length == 0
    $.ajax
      url: $(this).attr('href')
      type: $(this).data('ajax-method') || 'put'
      dataType: 'json'
      data:
        ids: ids
      success: ->
        $('.filter form').trigger('submit.rails')
$ ->
  $('body.notifications_show').each ->
    options =
      series:
        bars:
          show: true
          barWidth: 86400000
          align: 'center'
      yaxes:
        min: 0
      xaxis:
        mode: 'time',
        timeformat: "%m/%d/%y",
        tickSize: [7, 'day'],
    $('.graph').plot([$('.graph').data('values')], options)
  $('body.notifications_index').each ->
    initialize_links()
    $(document).on 'change', "input[type='checkbox'][name='ids-select-all']", ->
      $("input[type='checkbox'][name='ids[]']").prop('checked', $(this).prop('checked'))

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
exception_notification_server-0.0.11 app/assets/javascripts/exception_notification_server/pages/notifications.js.coffee
exception_notification_server-0.0.10 app/assets/javascripts/exception_notification_server/pages/notifications.js.coffee
exception_notification_server-0.0.9 app/assets/javascripts/exception_notification_server/pages/notifications.js.coffee
exception_notification_server-0.0.8 app/assets/javascripts/exception_notification_server/pages/notifications.js.coffee
exception_notification_server-0.0.7 app/assets/javascripts/exception_notification_server/pages/notifications.js.coffee
exception_notification_server-0.0.6 app/assets/javascripts/exception_notification_server/pages/notifications.js.coffee
exception_notification_server-0.0.5 app/assets/javascripts/exception_notification_server/pages/notifications.js.coffee
exception_notification_server-0.0.4 app/assets/javascripts/exception_notification_server/pages/notifications.js.coffee
exception_notification_server-0.0.3 app/assets/javascripts/exception_notification_server/pages/notifications.js.coffee
exception_notification_server-0.0.2 app/assets/javascripts/exception_notification_server/pages/notifications.js.coffee