Skip to content

Commit

Permalink
bug:2944 Performance issues when creating an album
Browse files Browse the repository at this point in the history
prepend new <option> instead of append

git-svn-id: http://piwigo.org/svn/trunk@23952 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
mistic100 committed Jul 14, 2013
1 parent e039af7 commit 065db80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/themes/default/template/include/add_album.inc.tpl
Expand Up @@ -50,7 +50,7 @@ jQuery(document).ready(function(){
jQuery("#albumSelect").find("option").removeAttr('selected');

if (parent_id==0) {
jQuery("#albumSelect").append(new_option);
jQuery("#albumSelect").prepend(new_option);
}
else {
jQuery("#albumSelect").find("option[value="+ parent_id +"]").after(new_option);
Expand Down

0 comments on commit 065db80

Please sign in to comment.