From a87e98b12f6de3d0f3fbf0743b5c25549966a1ad Mon Sep 17 00:00:00 2001 From: =?utf8?q?Benoi=CC=82t=20Pin?= Date: Mon, 31 Mar 2014 14:57:19 +0200 Subject: [PATCH] =?utf8?q?Prise=20en=20charge=20des=20param=C3=A8tres=20th?= =?utf8?q?umb=5Fsize=20et=20slide=5Fsize=20par=20l'uploader.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- skins/photo_layout_macros.pt | 10 ++++++---- skins/portfolio_style.css.dtml | 2 +- skins/portfolio_upload.js | 8 ++++---- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/skins/photo_layout_macros.pt b/skins/photo_layout_macros.pt index 48b8040..b9f63c5 100644 --- a/skins/photo_layout_macros.pt +++ b/skins/photo_layout_macros.pt @@ -86,15 +86,17 @@
batch navigation
- diff --git a/skins/portfolio_style.css.dtml b/skins/portfolio_style.css.dtml index f88048e..1005ea0 100755 --- a/skins/portfolio_style.css.dtml +++ b/skins/portfolio_style.css.dtml @@ -307,7 +307,7 @@ div.lightbox { border-radius:3px; width:0; margin-left:11px; - top:208px; + top:px; } .lightbox span.label { diff --git a/skins/portfolio_upload.js b/skins/portfolio_upload.js index 7dface3..e675651 100644 --- a/skins/portfolio_upload.js +++ b/skins/portfolio_upload.js @@ -7,13 +7,13 @@ var DDImageUploader; var MAX_PREVIEW = 2; var isThumbnail = /.*\/getThumbnail$/; -DDImageUploader = function(dropbox, uploadUrl) { +DDImageUploader = function(dropbox, uploadUrl, options) { DDFileUploaderBase.apply(this, [dropbox, uploadUrl]); this.existingSlides = this.indexExistingSlides(); - this.slideSize = 222; - this.progressBarMaxSize = 200; // pixels - this.thumbnailSize = 180; + this.slideSize = options.slideSize || 222; + this.progressBarMaxSize = this.slideSize - 22 || 200; // pixels + this.thumbnailSize = options.thumbnailSize || 180; this.previewQueue = []; this._previewQueueRunning = false; this.previewsLoaded = 0; -- 2.20.1