mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-06 09:52:29 +02:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user