add excel multirow email list parser

This commit is contained in:
Peter
2015-06-02 00:48:19 +01:00
parent 0bba7146a6
commit e03dfef8b3
5 changed files with 53 additions and 0 deletions

View File

@@ -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,",") )
}
});
});