From be7e6c392241c7f119678ea10a1575a7f7be7405 Mon Sep 17 00:00:00 2001 From: Peter Grassberger Date: Fri, 19 Feb 2016 01:22:43 +0100 Subject: jingles: fix upload progressbar not showing also set focus on upload button after fileadded 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 @@ + + + + + + + +
+ ... + + ... + + beginne... + +
+
+ +
- - - - - - - - -
- ... - - ... - - beginne... - -
-
- -
- +
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(); }); -- cgit v0.10.2