diff options
author | Peter Grassberger <petertheone@gmail.com> | 2016-02-19 00:22:43 (GMT) |
---|---|---|
committer | Peter Grassberger <petertheone@gmail.com> | 2016-02-19 00:22:43 (GMT) |
commit | be7e6c392241c7f119678ea10a1575a7f7be7405 (patch) | |
tree | ede0f95cc41cdc94e954ccffb5266c9f4d77d7f5 /www | |
parent | c592d5926c9dc39b0d9d3bb1bd37f487a5c12360 (diff) |
jingles: fix upload progressbar not showing
also set focus on upload button after fileadded
Diffstat (limited to 'www')
-rw-r--r-- | www/index.html | 39 | ||||
-rw-r--r-- | www/js/importer.js | 2 | ||||
-rw-r--r-- | www/js/jingles.js | 4 | ||||
-rw-r--r-- | www/js/shows.js | 1 |
4 files changed, 22 insertions, 24 deletions
diff --git a/www/index.html b/www/index.html index 48c9139..eb8e3d2 100644 --- a/www/index.html +++ b/www/index.html @@ -354,27 +354,26 @@ </div> <table> + <tr class="progressBar progressBarTemplate shows"> + <td class="cart-number"> + ... + </td> + <td class="file-name"> + ... + </td> + <td class="file-bytes"> + beginne... + </td> + <td colspan="3"> + <div class="progress"><div class="progress-bar" style="width: 0%;"></div></div> + </td> + <td class="text-center"> + <button class="btn btn-danger btn-xs"><span class="glyphicon glyphicon-remove"></span> Abbrechen</button> + </td> + </tr> + </table> - <table> - <tr class="progressBar progressBarTemplate shows"> - <td class="cart-number"> - ... - </td> - <td class="file-name"> - ... - </td> - <td class="file-bytes"> - beginne... - </td> - <td colspan="3"> - <div class="progress"><div class="progress-bar" style="width: 0%;"></div></div> - </td> - <td class="text-center"> - <button class="btn btn-danger btn-xs"><span class="glyphicon glyphicon-remove"></span> Abbrechen</button> - </td> - </tr> - </table> - + <table> <tr class="progressBar progressBarTemplate jingles"> <td><span class="label label-default"><span class="glyphicon glyphicon-transfer"></span></span></td> <td class="file-bytes"> diff --git a/www/js/importer.js b/www/js/importer.js index 405c7fd..7f8a0d8 100644 --- a/www/js/importer.js +++ b/www/js/importer.js @@ -66,7 +66,7 @@ Rivendell.Importer.prototype.openModal = function(group, groupView, createCart, self.$el.modal('hide'); }) - .removeAttr('disabled'); + .removeAttr('disabled').focus(); }); this.$el.modal({keyboard: true}); }; diff --git a/www/js/jingles.js b/www/js/jingles.js index 72ae3ae..c60d7fe 100644 --- a/www/js/jingles.js +++ b/www/js/jingles.js @@ -124,8 +124,8 @@ Rivendell.JingleGroupView.prototype.uploadProgress = function(upload, file) { var $cut = $('#jingle-' + file.cartNumber + '-' + file.cutNumber).first(); if (!$cut.hasClass('uploading')) { var $progressBar = $('.progressBarTemplate.jingles').clone().removeClass('progressBarTemplate'); - $progressBar.find('.file-name').text(file.name); - $progressBar.find('.cart-number').text(file.cartNumber); + $('.file-name', $progressBar).text(file.name); + $('.cart-number', $progressBar).text(file.cartNumber); $cut.html($progressBar.html()); $('button', $cut).on('click', function() { diff --git a/www/js/shows.js b/www/js/shows.js index e4417ad..c5c3581 100644 --- a/www/js/shows.js +++ b/www/js/shows.js @@ -239,7 +239,6 @@ Rivendell.ShowView.prototype.uploadProgress = function(upload, file) { $('.cart-number', $progressBar).text(file.cartNumber); $cart.html($progressBar.html()); - var self = this; $('button', $cart).on('click', function() { upload.cancel(); }); |