mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 21:49:21 +03:00
add excel multirow email list parser
This commit is contained in:
parent
0bba7146a6
commit
e03dfef8b3
5 changed files with 53 additions and 0 deletions
|
|
@ -0,0 +1,18 @@
|
|||
|
||||
$(function () {
|
||||
|
||||
//selectors
|
||||
var inputs = '.popups .inputosaurus-input input[type="text"]:first, \
|
||||
.popups .cc-row input[type="text"]:first, \
|
||||
.popups .bcc-row input[type="text"]:first';
|
||||
|
||||
//bind function
|
||||
$(document).on( 'keyup', inputs, function(){
|
||||
var t = $(this);
|
||||
var v = t.val();
|
||||
if( v != "" && v.match(/@/ig).length >= 2 ){
|
||||
t.val( t.val().replace(/\n| /ig,",") )
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue