gitlabhq/app/assets/javascripts/admin.js.coffee

13 lines
322 B
CoffeeScript
Raw Normal View History

2012-09-06 13:32:01 +02:00
$ ->
$('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'
2012-09-11 22:24:53 +02:00
$('.log-tabs a').click (e) ->
e.preventDefault()
$(this).tab('show')