Permalink
Browse files

Merge pull request #4 from kebot/master

修复上传种子失效( Chrome 19)
  • Loading branch information...
2 parents d26f435 + 0202482 commit 2dbef31458f277cc64b2eb9ada99ae11a8204e84 足兆叉虫 committed Jun 13, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 js/yaaw.js
View
@@ -131,7 +131,6 @@ var YAAW = (function() {
holder.ondrop = function(e) {
$(this).removeClass("hover");
e.preventDefault();
-
var file = e.dataTransfer.files[0];
YAAW.add_task.upload(file);
return false;
@@ -291,7 +290,12 @@ var YAAW = (function() {
add_task: {
submit: function(_this) {
- var uri = $("#uri-input").val() || $("#uri-textarea").val().split("\n");
+ var uri = $("#uri-input").val();
+ if( uri == ""){
+ uri = $("#uri-textarea").val();
+ uri = (uri == "") ? uri : uri.split("\n");
+ }
+ // var uri = $("#uri-input").val() || $("#uri-textarea").val().split("\n");
var options = {}, options_save = {};
$("#add-task-option input[name]").each(function(i, n) {
var name = n.getAttribute("name");

0 comments on commit 2dbef31

Please sign in to comment.