From 27d0c89c337ee5a2281640d0fed68ed26c0a50e1 Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 18 Aug 2011 15:19:03 +0000 Subject: feature 2407 added: display upload limitations before file selection (file maximum size, maximum dimensions, allowed file types). The maximum dimensions are calculated for GD only (because Imagick and External ImageMagick are not using PHP memory as far as I could find on the web). bug 2408 fixed: change term "old style form" into "browser uploader" and "multiple file form" into "Flash Uploader" (based on WordPress user interface) git-svn-id: http://piwigo.org/svn/trunk@11966 68402e56-0260-453c-a942-63ccdbb3a9ee --- .../themes/default/template/photos_add_direct.tpl | 31 +++++++++++++++++----- 1 file changed, 24 insertions(+), 7 deletions(-) (limited to 'admin/themes/default/template') diff --git a/admin/themes/default/template/photos_add_direct.tpl b/admin/themes/default/template/photos_add_direct.tpl index 7f17663f8..9ee4a8595 100644 --- a/admin/themes/default/template/photos_add_direct.tpl +++ b/admin/themes/default/template/photos_add_direct.tpl @@ -142,6 +142,11 @@ jQuery(document).ready(function(){ return false; }); + jQuery("#uploadWarningsSummary a.showInfo").click(function() { + jQuery("#uploadWarningsSummary").hide(); + jQuery("#uploadWarnings").show(); + }); + {/literal} {if $upload_mode eq 'html'} {literal} @@ -186,6 +191,9 @@ var sizeLimit = {$upload_max_filesize}; 'fileDesc' : 'Photo files (*.jpg,*.jpeg,*.png)', 'fileExt' : '*.jpg;*.JPG;*.jpeg;*.JPEG;*.png;*.PNG', 'sizeLimit' : sizeLimit, + 'onSelect' : function(event,ID,fileObj) { + jQuery("#fileQueue").show(); + }, 'onAllComplete' : function(event, data) { if (data.errors) { return false; @@ -337,7 +345,7 @@ var sizeLimit = {$upload_max_filesize}; -

{'Add another set of photos'|@translate}

+

{'Add another set of photos'|@translate}

{else}