gitlabhq/app/assets/javascripts/admin.js.coffee
2012-09-11 23:24:53 +03:00

12 lines
322 B
CoffeeScript

$ ->
$('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')