Commit d672ac13 authored by Kevin Gutierrez's avatar Kevin Gutierrez
Browse files

Use spaces

parent 4e3eb54b
...@@ -39,7 +39,11 @@ $(function() { ...@@ -39,7 +39,11 @@ $(function() {
}); });
}).done(function() { }).done(function() {
data.context.find('.start').prop('disabled', false); data.context.find('.start').prop('disabled', false);
if (that._trigger('added', e, data) !== false && (options.autoUpload || data.autoUpload) && data.autoUpload !== false) { if (
that._trigger('added', e, data) !== false &&
(options.autoUpload || data.autoUpload) &&
data.autoUpload !== false
) {
data.submit(); data.submit();
} }
}).fail(function() { }).fail(function() {
...@@ -64,7 +68,7 @@ $(function() { ...@@ -64,7 +68,7 @@ $(function() {
return false; return false;
} }
var progress = Math.floor((data.loaded / data.total) * 100); var progress = Math.floor(data.loaded / data.total * 100);
data.context.each(function() { data.context.each(function() {
$(this) $(this)
.find('.progress') .find('.progress')
...@@ -77,7 +81,7 @@ $(function() { ...@@ -77,7 +81,7 @@ $(function() {
}, },
progressall: function(e, data) { progressall: function(e, data) {
var progress = parseInt((data.loaded / data.total) * 100, 10); var progress = parseInt(data.loaded / data.total * 100, 10);
$('#overall-progress') $('#overall-progress')
.addClass('active') .addClass('active')
.attr('aria-valuenow', progress) .attr('aria-valuenow', progress)
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
{% endif %} {% endif %}
</div> </div>
<script> <script>
var thumb = $("[data-video-thumb=\"" + {{ video.id }} + "\"]"); var thumb = $("[data-video-thumb=\"" + {{ video.id }} + "\"]");
$("[data-thumb-target=\"" + {{ video.id }} + "\"]").append(thumb); $("[data-thumb-target=\"" + {{ video.id }} + "\"]").append(thumb);
</script> </script>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment