aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/public/js/views/reset.js
diff options
context:
space:
mode:
authorDennis Eriksen <dennis.se@gmail.com>2013-05-25 19:12:01 +0200
committerDennis Eriksen <dennis.se@gmail.com>2013-05-25 19:12:01 +0200
commit78b499e0cb06be9fefd538324d7ec74144f103e5 (patch)
tree5706bc5fcfc2c9ee3963bb79bd7fa6c562fe2c78 /public/js/views/reset.js
parentbe gone! (diff)
downloadDivid-78b499e0cb06be9fefd538324d7ec74144f103e5.tar.gz
deleted a bunch of files that doesn't actually get used
Diffstat (limited to 'public/js/views/reset.js')
-rw-r--r--public/js/views/reset.js27
1 files changed, 0 insertions, 27 deletions
diff --git a/public/js/views/reset.js b/public/js/views/reset.js
deleted file mode 100644
index c6a6166..0000000
--- a/public/js/views/reset.js
+++ /dev/null
@@ -1,27 +0,0 @@
-
-$(document).ready(function(){
-
- var rv = new ResetValidator();
-
- $('#set-password-form').ajaxForm({
- beforeSubmit : function(formData, jqForm, options){;
- rv.hideAlert();
- if (rv.validatePassword($('#pass-tf').val()) == false){
- return false;
- } else{
- return true;
- }
- },
- success : function(responseText, status, xhr, $form){
- rv.showSuccess("Your password has been reset.");
- setTimeout(function(){ window.location.href = '/'; }, 3000);
- },
- error : function(){
- rv.showAlert("I'm sorry something went wrong, please try again.");
- }
- });
-
- $('#set-password').modal('show');
- $('#set-password').on('shown', function(){ $('#pass-tf').focus(); })
-
-}); \ No newline at end of file