snappymail/plugins/excel-multirow-maillist-parser/js/parse_excel_list.js

22 lines
352 B
JavaScript
Raw Normal View History

2015-06-02 07:48:19 +08:00
2016-05-23 03:16:32 +08:00
(function(window, $) {
$(function() {
$(window.document).on('keyup', '.b-compose .b-header .inputosaurus-input input[type="text"]:first', function() {
var
$this = $(this),
value = $this.val()
;
if (value && value.match(/@/ig).length >= 2)
{
$this.val($this.val().replace(/\n| /ig, ','));
}
});
2015-06-02 07:48:19 +08:00
});
2016-05-23 03:16:32 +08:00
}(window, $))