From 2d713e87d60560e07419d37004b0261fbd972baf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Benoi=CC=82t=20Pin?= Date: Wed, 9 Apr 2014 21:39:15 +0200 Subject: [PATCH] =?utf8?q?Variation=20de=20l'opacit=C3=A9=20pour=20indique?= =?utf8?q?r=20l'=C3=A9tat=20d'avancement.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- skins/ckeditor/plugins/plinn_image/plugin.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/skins/ckeditor/plugins/plinn_image/plugin.js b/skins/ckeditor/plugins/plinn_image/plugin.js index c7ae5ec..631f9fa 100644 --- a/skins/ckeditor/plugins/plinn_image/plugin.js +++ b/skins/ckeditor/plugins/plinn_image/plugin.js @@ -51,6 +51,7 @@ PlinnCKDDUploader.prototype.createFileProxy = function(file) { rel.append(progressBar); var link = new CKEDITOR.dom.element('a'); link.setAttribute('href', '#'); + link.setStyle('opacity', 0.2); link.appendText(file.name); container.append(link); @@ -138,6 +139,8 @@ PlinnCKDDUploader.prototype.progressHandlerCB = function(progress) { var size = this.progressBarMaxSize * progress; size = Math.round(size); this.progressBar.setStyle('width', String(size) + 'px'); + var currentOpacity = this.uploadedItem.link.getStyle('opacity'); + this.uploadedItem.link.setStyle('opacity', Math.max(currentOpacity, progress)); }; PlinnCKDDUploader.prototype.progressHandler = function(evt) { -- 2.20.1