diff options
| author | Adam Soltys <[email protected]> | 2017-01-21 18:56:05 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2017-01-21 18:56:05 -0800 |
| commit | c413e457579b68b7a92ab47cdd867202ee7bb47e (patch) | |
| tree | 4d84c4af06e936a54890468cc4351deabcd8c0f9 /static/js/profile.coffee | |
| parent | 931f2262d9ef7f571fe87b176f6cd531b3579a68 (diff) | |
| download | coinos-server-c413e457579b68b7a92ab47cdd867202ee7bb47e.tar.gz coinos-server-c413e457579b68b7a92ab47cdd867202ee7bb47e.zip | |
Ditch coffeescript
Diffstat (limited to 'static/js/profile.coffee')
| -rw-r--r-- | static/js/profile.coffee | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/static/js/profile.coffee b/static/js/profile.coffee deleted file mode 100644 index a894f275..00000000 --- a/static/js/profile.coffee +++ /dev/null @@ -1,30 +0,0 @@ -g = exports ? this -g.proceed = false - -$(-> - $('[data-toggle=popover]').popover() - $('#title').focus() - - user = $('#username').val() - $.getJSON("/#{user}.json", (data) -> - $('#email').val(data.email) - $('#phone').val(data.phone) - $('#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 - ) -) |
