Changeset 12124


Ignore:
Timestamp:
Sep 9, 2011, 3:19:10 PM (9 years ago)
Author:
plg
Message:

upload form: automatically focus on the album name when opening the create album form

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/photos_add_direct.tpl

    r12106 r12124  
    9797  }
    9898
    99 /*
    100   jQuery("#albumSelect").find("option").remove();
    101   fillCategoryListbox("albumSelect");
    102   fillCategoryListbox("category_parent");
    103 */
    104 
    105   jQuery(".addAlbumOpen").colorbox({inline:true, href:"#addAlbumForm"});
     99  jQuery(".addAlbumOpen").colorbox({
     100    inline:true,
     101    href:"#addAlbumForm",
     102    onComplete:function(){
     103      jQuery("input[name=category_name]").focus();
     104    }
     105  });
    106106
    107107  jQuery("#addAlbumForm form").submit(function(){
Note: See TracChangeset for help on using the changeset viewer.