aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/public/js/form-validators/emailValidator.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/emailValidator.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/emailValidator.js')
-rw-r--r--public/js/form-validators/emailValidator.js39
1 files changed, 0 insertions, 39 deletions
diff --git a/public/js/form-validators/emailValidator.js b/public/js/form-validators/emailValidator.js
deleted file mode 100644
index 5a87c04..0000000
--- a/public/js/form-validators/emailValidator.js
+++ /dev/null
@@ -1,39 +0,0 @@
-
-function EmailValidator(){
-
-// bind this to _local for anonymous functions //
-
- var _local = this;
-
-// modal window to allow users to request credentials by email //
- _local.retrievePassword = $('#get-credentials');
- _local.retrievePassword.modal({ show : false, keyboard : true, backdrop : true });
- _local.retrievePasswordAlert = $('#get-credentials .alert');
- _local.retrievePassword.on('show', function(){ $('#get-credentials-form').resetForm(); _local.retrievePasswordAlert.hide();});
-
-}
-
-EmailValidator.prototype.validateEmail = function(e)
-{
- var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
- return re.test(e);
-}
-
-EmailValidator.prototype.showEmailAlert = function(m)
-{
- this.retrievePasswordAlert.attr('class', 'alert alert-error');
- this.retrievePasswordAlert.html(m);
- this.retrievePasswordAlert.show();
-}
-
-EmailValidator.prototype.hideEmailAlert = function()
-{
- this.retrievePasswordAlert.hide();
-}
-
-EmailValidator.prototype.showEmailSuccess = function(m)
-{
- this.retrievePasswordAlert.attr('class', 'alert alert-success');
- this.retrievePasswordAlert.html(m);
- this.retrievePasswordAlert.fadeIn(500);
-} \ No newline at end of file