From 9e6ecb5459f5c964e035ac554bb33b880921c638 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 18 Oct 2024 15:57:10 +0100 Subject: [PATCH] avoid people accidentally adding itesm to current video --- static/js/addFilesDialog.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/static/js/addFilesDialog.js b/static/js/addFilesDialog.js index 4bfa0a71f..a8f6ecf0f 100644 --- a/static/js/addFilesDialog.js +++ b/static/js/addFilesDialog.js @@ -106,6 +106,13 @@ pandora.ui.addFilesDialog = function(options) { }); var selectItems = []; + selectItems.push({ + id: 'one', + title: Ox._( + options.items.length > 1 ? 'Create new {0} with multiple parts' : 'Create new {0}', + [pandora.site.itemName.singular.toLowerCase()] + ) + }); if (pandora.user.ui.item && options.editable) { selectItems.push({ id: 'add', @@ -124,13 +131,6 @@ pandora.ui.addFilesDialog = function(options) { ) }); } - selectItems.push({ - id: 'one', - title: Ox._( - options.items.length > 1 ? 'Create new {0} with multiple parts' : 'Create new {0}', - [pandora.site.itemName.singular.toLowerCase()] - ) - }); var $select = Ox.Select({ items: selectItems, width: 256