aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2011-09-09 13:19:10 +0000
committerplegall <plg@piwigo.org>2011-09-09 13:19:10 +0000
commitc12e3bb8cad89cd8b3b352eadecd412dfd2934a9 (patch)
tree3af41a54909a34f411dfb0421fb231e79d57eb8e /admin
parent3d40235df8147558da47de4e82e191dcc7ae8c47 (diff)
upload form: automatically focus on the album name when opening the create album form
git-svn-id: http://piwigo.org/svn/trunk@12124 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-rw-r--r--admin/themes/default/template/photos_add_direct.tpl14
1 files changed, 7 insertions, 7 deletions
diff --git a/admin/themes/default/template/photos_add_direct.tpl b/admin/themes/default/template/photos_add_direct.tpl
index 981868339..ab0fd7b05 100644
--- a/admin/themes/default/template/photos_add_direct.tpl
+++ b/admin/themes/default/template/photos_add_direct.tpl
@@ -96,13 +96,13 @@ jQuery(document).ready(function(){
);
}
-/*
- jQuery("#albumSelect").find("option").remove();
- fillCategoryListbox("albumSelect");
- fillCategoryListbox("category_parent");
-*/
-
- jQuery(".addAlbumOpen").colorbox({inline:true, href:"#addAlbumForm"});
+ jQuery(".addAlbumOpen").colorbox({
+ inline:true,
+ href:"#addAlbumForm",
+ onComplete:function(){
+ jQuery("input[name=category_name]").focus();
+ }
+ });
jQuery("#addAlbumForm form").submit(function(){
jQuery("#categoryNameError").text("");