From ba5200b50692b889f59df9f37c913b3ef85045c8 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 21 Jan 2017 19:46:49 -0800 Subject: Ditch client code --- static/js/profile.js | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 static/js/profile.js (limited to 'static/js/profile.js') 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('
Passwords don\'t match
'); - } 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); -- cgit v1.2.3