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
This commit is contained in:
parent
e039af727e
commit
065db80650
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue