diff --git a/admin/themes/default/js/albums.js b/admin/themes/default/js/albums.js index 64d83537e..0b0122035 100644 --- a/admin/themes/default/js/albums.js +++ b/admin/themes/default/js/albums.js @@ -249,6 +249,7 @@ $(document).ready(() => { $('.cat-move-order-popin').fadeIn(); $('.cat-move-order-popin .album-name').html(str_root); $('.cat-move-order-popin input[name=id]').val(-1); + $('input[name=simpleAutoOrder]').attr('value', str_root_order); }); $('.tree').on('mousedown mouseup', function mouseState(e) { diff --git a/admin/themes/default/template/albums.tpl b/admin/themes/default/template/albums.tpl index f0b82ecdf..69977cbd1 100644 --- a/admin/themes/default/template/albums.tpl +++ b/admin/themes/default/template/albums.tpl @@ -38,6 +38,7 @@ const str_add_photo = '{'Add Photos'|@translate|escape:javascript}'; const str_visit_gallery = '{'Visit Gallery'|@translate|escape:javascript}'; const str_sort_order = '{'Automatic sort order'|@translate|escape:javascript}'; const str_delete_album = '{'Delete album'|@translate|escape:javascript}'; +const str_root_order = '{'Apply to root albums'|@translate|escape:javascript}' const add_album_root_title = '{'Create a new album at root'|@translate|escape:javascript}'; const add_sub_album_of = '{'Create a sub-album of "%s"'|@translate|escape:javascript}'; diff --git a/language/en_UK/admin.lang.php b/language/en_UK/admin.lang.php index 7cc3f7ae6..85a48d76f 100644 --- a/language/en_UK/admin.lang.php +++ b/language/en_UK/admin.lang.php @@ -1322,4 +1322,5 @@ $lang['Details'] = 'Details'; $lang['Always have a backup of your database and files.'] = 'Always have a backup of your database and files.'; $lang['The best is to have them made automatically on a regular basis.'] = 'The best is to have them made automatically on a regular basis.'; $lang['If anything bad happens during the update, you would be able to restore a backup.'] = 'If anything bad happens during the update, you would be able to restore a backup.'; +$lang['Apply to root albums'] = 'Apply to root albums'; // Leave this line empty diff --git a/language/fr_FR/admin.lang.php b/language/fr_FR/admin.lang.php index dc11b0d0c..52a3bc94f 100644 --- a/language/fr_FR/admin.lang.php +++ b/language/fr_FR/admin.lang.php @@ -1322,4 +1322,5 @@ $lang['Details'] = 'Détails'; $lang['Always have a backup of your database and files.'] = 'Ayez toujours une sauvegarde de votre base de données et de vos fichiers'; $lang['The best is to have them made automatically on a regular basis.'] = 'Le mieux est de le faire automatiquement et régulièrement'; $lang['If anything bad happens during the update, you would be able to restore a backup.'] = 'Si quelque chose arrive pendant la mise à jour, il sera possible de restaurer la sauvegarde'; +$lang['Apply to root albums'] = 'Appliquer aux albums racine'; // Leave this line empty