Fix my own variable typo (whoops)

(imported from commit d12467db2756281fe0710645825c54c269ab6781)
This commit is contained in:
Keegan McAllister 2012-10-03 17:38:55 -04:00
parent db224c1c24
commit f2a73985c9
1 changed files with 2 additions and 2 deletions

View File

@ -2,12 +2,12 @@
plusplus: true, nomen: true, regexp: true */
/*global $: false, jQuery: false */
var disallowed_domain_list = ['gmail.com'];
var disallowed_domains = ['gmail.com'];
function validate_email_domain(value, element, param) {
var splitted = value.split("@");
var domain = splitted[splitted.length - 1];
return $.inArray(domain, disallowed_domain) !== -1;
return $.inArray(domain, disallowed_domains) !== -1;
}
$.validator.addMethod("fromDomain", validate_email_domain,