mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 14:35:27 +00:00
Split off some content previously placed into base back into index.html. Move content previously localised in accounts_home to a new content_base for use in the non-app version of the site. We wrote up some copy and styled it according to taste. In our new signup form, we no longer collect a short name and instead extrapolate from the email. (imported from commit cd734b13a4bda7f304129379524c4cc96b77b24b)
29 lines
816 B
JavaScript
29 lines
816 B
JavaScript
/*jslint browser: true, devel: true, sloppy: true,
|
||
plusplus: true, nomen: true, regexp: true */
|
||
/*global $: false, jQuery: false */
|
||
|
||
var tld_list = ['gmail.com'];
|
||
$.validator.addMethod("fromDomain", function (value, element, param) {
|
||
console.log("foo");
|
||
console.log(value);
|
||
var splitted = value.split("@");
|
||
var tld = splitted[spitted.length - 1];
|
||
return false;
|
||
return $.inArray(tld, tld_list) !== -1;
|
||
},
|
||
"Please use your company email address to sign up. Otherwise, we won’t be able to connect you with your coworkers.");
|
||
|
||
$(document).ready(function(){
|
||
$("#email_signup").validate({
|
||
rules: {
|
||
email: {
|
||
required: true,
|
||
email: true,
|
||
}
|
||
},
|
||
errorElement: "div",
|
||
errorClass: "alert",
|
||
|
||
});
|
||
});
|