From 5f261ac58077a4d176f06c043aa7953b37cb9938 Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 1 Jun 2011 16:21:25 +0530 Subject: [PATCH] minor, css --- edgware/static/js/upload/upload.js | 11 +++++++---- edgware/templates/upload_files.html | 15 +++++++++------ 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/edgware/static/js/upload/upload.js b/edgware/static/js/upload/upload.js index a0dd206..40e45d7 100644 --- a/edgware/static/js/upload/upload.js +++ b/edgware/static/js/upload/upload.js @@ -317,6 +317,7 @@ var UploadQueue = function() { this.allFiles = []; this.isUploading = false; this.$list = $('#filesList'); + this.$progress = $('#progressbar'); this.len = function() { return this.allFiles.length; }; @@ -327,10 +328,10 @@ var UploadQueue = function() { } UploadQueue.prototype.init = function() { - $('#progressbar').show(); +// $('#progressbar').show(); $('#progressbar').width(200); - $('#progressbar').css('background-color', '#eee'); - $('#progressbar').html('
uploading
'); +// $('#progressbar').css('background-color', '#80ADB0'); + $('#progressbar').html('
uploading
'); } /* param f = file */ @@ -375,16 +376,18 @@ UploadQueue.prototype.markDone = function(no) { this.upload(no + 1); } else { this.isUploading = false; + $('#progressbar').hide(); } }; UploadQueue.prototype.upload = function(no) { var that = this; var fil = this.allFiles[no]; - console.log("uploading", fil); +// console.log("uploading", fil); var data = this.getData(fil); var $li = this.getLi(no); this.isUploading = true; + $('#progressbar').show(); $li.addClass("uploading"); ogg = FirefoggUploader(fil, add_url, data, function(ogg) { if (ogg.resultUrl) { diff --git a/edgware/templates/upload_files.html b/edgware/templates/upload_files.html index 860f4ba..6f15337 100644 --- a/edgware/templates/upload_files.html +++ b/edgware/templates/upload_files.html @@ -59,12 +59,6 @@ $(function() { {% endblock %}