aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2013-07-14 19:59:27 +0000
committermistic100 <mistic@piwigo.org>2013-07-14 19:59:27 +0000
commit065db80650ff757ca4057a0738e77a99a17c109a (patch)
tree2579f6d99cfec91a045b67aa6b27966a210b5a52 /admin
parente039af727ed0ed0b30abcfb4976af38946f02d8f (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 'admin')
-rw-r--r--admin/themes/default/template/include/add_album.inc.tpl2
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);