mirror of https://github.com/zulip/zulip.git
Fix my own variable typo (whoops)
(imported from commit d12467db2756281fe0710645825c54c269ab6781)
This commit is contained in:
parent
db224c1c24
commit
f2a73985c9
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue