aboutsummaryrefslogtreecommitdiffstats
path: root/public/css/coinos.css
diff options
context:
space:
mode:
Diffstat (limited to 'public/css/coinos.css')
0 files changed, 0 insertions, 0 deletions
d8d8fda7eb70bab8efe74b3c3f3'>^
2f65c2ad ^








cd55bb01 ^



2f65c2ad ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30








                                      

                                     


                          








                                                                                                                     



                                                   


                  
g = exports ? this
g.proceed = false

$(->
  $('[data-toggle=popover]').popover()
  $('#title').focus()

  user = $('#username').val()
  $.getJSON("/#{user}.json", (data) ->
    $('#username').val(data.username)
    $('#email').val(data.email)
    $('#profile').fadeIn()
  )

  $('#confirm').blur(->
    $('#confirm_error').remove() 
    if $('#password').val() != $('#confirm').val()
      $('#password, #confirm').parent().addClass('has-error')
      $('#confirm').parent().after('<div id="confirm_error" class="alert alert-danger">Passwords don\'t match</div>')
    else
      $('#password, #confirm').parent().removeClass('has-error')
  )

  $('#profile').submit(->
    $('#profile .form-control').blur()
    if $('#profile .has-error').length > 0
      $('#profile .has-error').effect('shake', 500)
      return false
  )
)