Sha256: 15da9a9c944f8ce40c7169fd3ac0f492db6c8eee70cac87b2b1d0bdcd03d928a

Contents?: true

Size: 676 Bytes

Versions: 7

Compression:

Stored size: 676 Bytes

Contents

$(document).ready ->
  $('.select2').select2()
  # Table Row as links
  $('.table-hover tr[data-url]').on 'click', ->
    window.location.href = $(this).attr('data-url')
    return

  window.startAnimateProgress = (message) ->
    $('.content-body').prepend '<div class=\'alert-box\'></div>'
    $('.content-body .alert-box').Loadingdotdotdot('word': message).addClass 'info'
    return

  window.stopAnimateProgress = ->
    $('.alert-box').Loadingdotdotdot 'Stop'
    return

  # Modal Cancel buttons
  $('a.modal-cancel').click (e) ->
    e.preventDefault()
    $('a.close-reveal-modal').trigger 'click'
    return

String::repeat = (num) ->
  new Array(num + 1).join this

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
express_admin-1.4.8 app/assets/javascripts/express_admin/admin.js.coffee
express_admin-1.4.7 app/assets/javascripts/express_admin/admin.js.coffee
express_admin-1.4.6 app/assets/javascripts/express_admin/admin.js.coffee
express_admin-1.4.5 app/assets/javascripts/express_admin/admin.js.coffee
express_admin-1.4.4 app/assets/javascripts/express_admin/admin.js.coffee
express_admin-1.4.3 app/assets/javascripts/express_admin/admin.js.coffee
express_admin-1.4.2 app/assets/javascripts/express_admin/admin.js.coffee