aboutsummaryrefslogtreecommitdiffstats
path: root/public/js/profile.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2017-01-15 18:24:09 -0800
committerAdam Soltys <[email protected]>2017-01-15 18:24:09 -0800
commit7762ceaa7e2bb34f8758e17a4c8f512fa6a81b9e (patch)
tree91bb1d1b8fe6ad77a48f0e429d9bfd35834c78d9 /public/js/profile.js
parent0ae266bf88f9f79c7e99b272688126898303daa4 (diff)
downloadcoinos-server-7762ceaa7e2bb34f8758e17a4c8f512fa6a81b9e.tar.gz
coinos-server-7762ceaa7e2bb34f8758e17a4c8f512fa6a81b9e.zip
Initial Vueification
Diffstat (limited to 'public/js/profile.js')
-rw-r--r--public/js/profile.js36
1 files changed, 0 insertions, 36 deletions
diff --git a/public/js/profile.js b/public/js/profile.js
deleted file mode 100644
index db81832b..00000000
--- a/public/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);