mirror of
https://github.com/RainLoop/rainloop-webmail.git
synced 2025-12-13 20:35:42 +01:00
add excel multirow email list parser
This commit is contained in:
@@ -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,",") )
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user