aboutsummaryrefslogtreecommitdiffstats
path: root/static/js/profile.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2017-01-21 19:46:49 -0800
committerAdam Soltys <[email protected]>2017-01-21 19:46:49 -0800
commitba5200b50692b889f59df9f37c913b3ef85045c8 (patch)
tree755d79cf488d383fe2ffaf123c91be51e879ef35 /static/js/profile.js
parentc413e457579b68b7a92ab47cdd867202ee7bb47e (diff)
downloadcoinos-server-ba5200b50692b889f59df9f37c913b3ef85045c8.tar.gz
coinos-server-ba5200b50692b889f59df9f37c913b3ef85045c8.zip
Ditch client code
Diffstat (limited to 'static/js/profile.js')
-rw-r--r--static/js/profile.js36
1 files changed, 0 insertions, 36 deletions
diff --git a/static/js/profile.js b/static/js/profile.js
deleted file mode 100644
index db81832b..00000000
--- a/static/js/profile.js
+++ /dev/null
@@ -1,36 +0,0 @@
-(function() {
- var g;
-
- g = typeof exports !== "undefined" && exports !== null ? exports : this;
-
- g.proceed = false;
-
- $(function() {
- var user;
- $('[data-toggle=popover]').popover();
- $('#title').focus();
- user = $('#username').val();
- $.getJSON("/" + user + ".json", function(data) {
- $('#email').val(data.email);
- $('#phone').val(data.phone);
- return $('#profile').fadeIn();
- });
- $('#confirm').blur(function() {
- $('#confirm_error').remove();
- if ($('#password').val() !== $('#confirm').val()) {
- $('#password, #confirm').parent().addClass('has-error');
- return $('#confirm').parent().after('<div id="confirm_error" class="alert alert-danger">Passwords don\'t match</div>');
- } else {
- return $('#password, #confirm').parent().removeClass('has-error');
- }
- });
- return $('#profile').submit(function() {
- $('#profile .form-control').blur();
- if ($('#profile .has-error').length > 0) {
- $('#profile .has-error').effect('shake', 500);
- return false;
- }
- });
- });
-
-}).call(this);