summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/admin.js.coffee
blob: 76454c29269bc1e5d55ab26fca38cb46e240fdfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
$ ->
  $('input#user_force_random_password').on 'change', (elem) ->
    elems = $('#user_password, #user_password_confirmation')

    if $(@).attr 'checked'
      elems.val('').attr 'disabled', true
    else
      elems.removeAttr 'disabled'

  $('.log-tabs a').click (e) ->
    e.preventDefault()
    $(this).tab('show')