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

18 lines
503 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')
2012-11-29 05:49:11 +01:00
$('.log-bottom').click (e) ->
e.preventDefault()
visible_log = $(".file_content:visible")
visible_log.animate({ scrollTop: visible_log.find('ol').height() }, "fast")