diff --git a/admin/themes/default/template/photos_add_direct.tpl b/admin/themes/default/template/photos_add_direct.tpl index 510556146..981868339 100644 --- a/admin/themes/default/template/photos_add_direct.tpl +++ b/admin/themes/default/template/photos_add_direct.tpl @@ -15,6 +15,11 @@ jQuery(document).ready(function(){ jQuery("#formErrors").hide(); jQuery("#formErrors li").hide(); + if (jQuery("#albumSelect option:selected").length == 0) { + jQuery("#formErrors #noAlbum").show(); + nbErrors++; + } + var nbFiles = 0; if (jQuery("#uploadBoxes").size() == 1) { jQuery("input[name^=image_upload]").each(function() { @@ -96,7 +101,7 @@ jQuery(document).ready(function(){ fillCategoryListbox("albumSelect"); fillCategoryListbox("category_parent"); */ - + jQuery(".addAlbumOpen").colorbox({inline:true, href:"#addAlbumForm"}); jQuery("#addAlbumForm form").submit(function(){ @@ -122,10 +127,19 @@ jQuery(document).ready(function(){ /* we refresh the album creation form, in case the user wants to create another album */ jQuery("#category_parent").find("option").remove(); + + jQuery("