aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/public/js/form-validators/loginValidator.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/form-validators/loginValidator.js
parentbe gone! (diff)
downloadDivid-78b499e0cb06be9fefd538324d7ec74144f103e5.tar.gz
deleted a bunch of files that doesn't actually get used
Diffstat (limited to 'public/js/form-validators/loginValidator.js')
-rw-r--r--public/js/form-validators/loginValidator.js29
1 files changed, 0 insertions, 29 deletions
diff --git a/public/js/form-validators/loginValidator.js b/public/js/form-validators/loginValidator.js
deleted file mode 100644
index 066e822..0000000
--- a/public/js/form-validators/loginValidator.js
+++ /dev/null
@@ -1,29 +0,0 @@
-
-function LoginValidator(){
-
-// bind a simple alert window to this controller to display any errors //
-
- this.loginErrors = $('.modal-alert');
- this.loginErrors.modal({ show : false, keyboard : true, backdrop : true });
-
- this.showLoginError = function(t, m)
- {
- $('.modal-alert .modal-header h3').text(t);
- $('.modal-alert .modal-body p').text(m);
- this.loginErrors.modal('show');
- }
-
-}
-
-LoginValidator.prototype.validateForm = function()
-{
- if ($('#user-tf').val() == ''){
- this.showLoginError('Whoops!', 'Please enter a valid username');
- return false;
- } else if ($('#pass-tf').val() == ''){
- this.showLoginError('Whoops!', 'Please enter a valid password');
- return false;
- } else{
- return true;
- }
-} \ No newline at end of file