diff options
| -rw-r--r-- | js/cheesesteak.js | 2 | ||||
| -rw-r--r-- | js/pomf.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/js/cheesesteak.js b/js/cheesesteak.js index 75f837e..1e60a56 100644 --- a/js/cheesesteak.js +++ b/js/cheesesteak.js @@ -162,7 +162,7 @@ if (e.lengthComputable) { size = e.loaded; // We know the size of the files, the order they're in, and how - // much we've uploaded. Based on this data, we can do some magic + // much we've uploaded. Based on this data, we can do some magic // to figure out which file we're on, and how much we've uploaded // of that file. // TODO: This math has trouble on later uploads. Leak somewhere @@ -121,7 +121,7 @@ $(function() { var hits = {}; files.forEach(function(file) { ++hits[file.name]; - var row = $($('li[data-filename="' + + var row = $($('li[data-filename="' + escape(file.name) + '"]')[hits[file.name] || 0]); fn.call(row, row, file, files); }); |
