mattfeury/Word-Dog — comment on commit ed5c5bb0f969dc8b540954b20e02ae27b75b450b
File: application/views/unit.php line 98
By mattfeury:

das nasty. a few notes:

-try to strip out all console.logs before you commit. especially if there is actual good code inside.
-you're doing some nasty jquery traversing here:
```var $uploadtext = $(this).parent().find('.picture').val().split("\\").pop()```
can become:
```var $uploadtext = $(this).val().split("\\").pop() ```
$(this) always refers to the selected element, which is always input[type=file] here.