From 78b499e0cb06be9fefd538324d7ec74144f103e5 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Sat, 25 May 2013 19:12:01 +0200 Subject: deleted a bunch of files that doesn't actually get used --- public/js/form-validators/resetValidator.js | 37 ----------------------------- 1 file changed, 37 deletions(-) delete mode 100644 public/js/form-validators/resetValidator.js (limited to 'public/js/form-validators/resetValidator.js') diff --git a/public/js/form-validators/resetValidator.js b/public/js/form-validators/resetValidator.js deleted file mode 100644 index 71c8792..0000000 --- a/public/js/form-validators/resetValidator.js +++ /dev/null @@ -1,37 +0,0 @@ - -function ResetValidator(){ - -// modal window to allow users to reset their password // - this.setPassword = $('#set-password'); - this.setPassword.modal({ show : false, keyboard : false, backdrop : 'static' }); - this.setPasswordAlert = $('#set-password .alert'); -} - -ResetValidator.prototype.validatePassword = function(s) -{ - if (s.length >= 6){ - return true; - } else{ - this.showAlert('Password Should Be At Least 6 Characters'); - return false; - } -} - -ResetValidator.prototype.showAlert = function(m) -{ - this.setPasswordAlert.attr('class', 'alert alert-error'); - this.setPasswordAlert.html(m); - this.setPasswordAlert.show(); -} - -ResetValidator.prototype.hideAlert = function() -{ - this.setPasswordAlert.hide(); -} - -ResetValidator.prototype.showSuccess = function(m) -{ - this.setPasswordAlert.attr('class', 'alert alert-success'); - this.setPasswordAlert.html(m); - this.setPasswordAlert.fadeIn(500); -} \ No newline at end of file -- cgit v1.2.3