mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 02:55:42 +05:00
added title limit when creating a team #1223
This commit is contained in:
parent
4fe77eacb3
commit
608488abab
@ -544,6 +544,10 @@ define([
|
||||
if (state) { return; }
|
||||
var name = $(input).val();
|
||||
if (!name.trim()) { return; }
|
||||
Messages.team_nameTooLong = "Team name is too long"; // XXX
|
||||
if(name.length > 50){
|
||||
return UI.warn(Messages.team_nameTooLong);
|
||||
}
|
||||
state = true;
|
||||
$spinner.show();
|
||||
APP.module.execCommand('CREATE_TEAM', {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user