diff options
author | mistic100 <mistic@piwigo.org> | 2013-07-14 19:59:27 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2013-07-14 19:59:27 +0000 |
commit | 065db80650ff757ca4057a0738e77a99a17c109a (patch) | |
tree | 2579f6d99cfec91a045b67aa6b27966a210b5a52 /admin/themes/default/template/include | |
parent | e039af727ed0ed0b30abcfb4976af38946f02d8f (diff) |
bug:2944 Performance issues when creating an album
prepend new <option> instead of append
git-svn-id: http://piwigo.org/svn/trunk@23952 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/themes/default/template/include/add_album.inc.tpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/themes/default/template/include/add_album.inc.tpl b/admin/themes/default/template/include/add_album.inc.tpl index d950ad5ce..acbdc948a 100644 --- a/admin/themes/default/template/include/add_album.inc.tpl +++ b/admin/themes/default/template/include/add_album.inc.tpl @@ -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); |