mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Add selectize to invite responsibles
email validation and input as tags is added using selectize
This commit is contained in:
parent
58c829571e
commit
a20c1bb882
1 changed files with 14 additions and 0 deletions
|
|
@ -29,4 +29,18 @@
|
|||
plugins: ['remove_button'],
|
||||
minItems: 2
|
||||
} )
|
||||
$('#booth_invite_responsible').selectize({
|
||||
plugins: ['remove_button'],
|
||||
delimiter: ',',
|
||||
persist: false,
|
||||
create: function(input) {
|
||||
if (!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(input)){
|
||||
return {}
|
||||
}
|
||||
return {
|
||||
value: input,
|
||||
text: input
|
||||
}
|
||||
}
|
||||
} )
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue