Commit 4ae032e6 authored by Jonne Haß's avatar Jonne Haß

Merge pull request #6071 from svbergerem/upload-images-style

Fix progress bar in publisher when uploading images
parents dbd8a91d a7446dd5
...@@ -43,7 +43,7 @@ app.views.PublisherUploader = Backbone.View.extend({ ...@@ -43,7 +43,7 @@ app.views.PublisherUploader = Backbone.View.extend({
var progress = Math.round(loaded / total * 100); var progress = Math.round(loaded / total * 100);
this.info.text(fileName + " " + progress + "%").fadeTo(200, 1); this.info.text(fileName + " " + progress + "%").fadeTo(200, 1);
this.publisher.photozoneEl this.publisher.photozoneEl
.find("li.loading").first().find(".bar") .find("li.loading").first().find(".progress-bar")
.width(progress + "%"); .width(progress + "%");
}, },
...@@ -60,7 +60,9 @@ app.views.PublisherUploader = Backbone.View.extend({ ...@@ -60,7 +60,9 @@ app.views.PublisherUploader = Backbone.View.extend({
publisher.wrapperEl.addClass("with_attachments"); publisher.wrapperEl.addClass("with_attachments");
publisher.photozoneEl.append( publisher.photozoneEl.append(
"<li class=\"publisher_photo loading\" style=\"position:relative;\">" + "<li class=\"publisher_photo loading\" style=\"position:relative;\">" +
" <div class=\"progress progress-striped active\"><div class=\"bar\"></div></div>" + " <div class=\"progress\">" +
" <div class=\"progress-bar progress-bar-striped active\" role=\"progressbar\"></div>"+
" </div>" +
" <img src=\"\"+Handlebars.helpers.imageUrl(\"ajax-loader2.gif\")+\"\" class=\"ajax-loader\" alt=\"\" />"+ " <img src=\"\"+Handlebars.helpers.imageUrl(\"ajax-loader2.gif\")+\"\" class=\"ajax-loader\" alt=\"\" />"+
"</li>" "</li>"
); );
......
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