split the uris by space or new line for new download

This commit is contained in:
hamza zia 2012-08-27 19:18:47 +08:00
parent 76299e6b1f
commit 6f300f9c09

View File

@ -417,7 +417,7 @@ function addDownload(uris) {
} }
function newDownload() { function newDownload() {
var urls = $('#newDownload_url').val().split('\n') var urls = $('#newDownload_url').val().split(/\s+/)
.map(function(e) { .map(function(e) {
return e.trim(); return e.trim();
}) })