From f838a6be6070e872a8e960f0b6f12c8078edd1de Mon Sep 17 00:00:00 2001 From: j Date: Mon, 22 Jul 2019 11:11:04 +0200 Subject: [PATCH 1/4] default to multiple videos --- static/js/addFilesDialog.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/static/js/addFilesDialog.js b/static/js/addFilesDialog.js index 75bdca18..e718b218 100644 --- a/static/js/addFilesDialog.js +++ b/static/js/addFilesDialog.js @@ -117,6 +117,15 @@ pandora.ui.addFilesDialog = function(options) { ) }); } else { + if (options.items.length > 1) { + selectItems.push({ + id: 'multiple', + title: Ox._( + 'Create multiple {0}', + [pandora.site.itemName.plural.toLowerCase()] + ) + }); + } selectItems.push({ id: 'one', title: Ox._( @@ -125,15 +134,6 @@ pandora.ui.addFilesDialog = function(options) { ) }); } - if (options.items.length > 1) { - selectItems.push({ - id: 'multiple', - title: Ox._( - 'Create multiple {0}', - [pandora.site.itemName.plural.toLowerCase()] - ) - }); - } var $select = Ox.Select({ items: selectItems, width: 256 From 33b105b9b80ede56c8c93261934d86758d9fef54 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 22 Jul 2019 11:11:25 +0200 Subject: [PATCH 2/4] avoid password autocompltee --- static/js/preferencesDialog.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/js/preferencesDialog.js b/static/js/preferencesDialog.js index aa74d003..70af78f2 100644 --- a/static/js/preferencesDialog.js +++ b/static/js/preferencesDialog.js @@ -47,6 +47,9 @@ pandora.ui.preferencesDialog = function() { validate: pandora.validateNewPassword, width: 320 }) + .attr({ + autocomplete: 'new-password' + }) .bindEvent({ validate: function(data) { data.valid && pandora.api.editPreferences({password: data.value}); From 115f05625c3dc9872a4250251ebfb887825723d5 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 22 Jul 2019 11:11:34 +0200 Subject: [PATCH 3/4] ignore old migrations --- update.py | 1 + 1 file changed, 1 insertion(+) diff --git a/update.py b/update.py index 41283454..119f9adb 100755 --- a/update.py +++ b/update.py @@ -332,6 +332,7 @@ if __name__ == "__main__": '-- Model missing for table: djcelery_intervalschedule\n', '-- Model missing for table: djcelery_workerstate\n', '-- Model missing for table: djcelery_taskstate\n', + '-- Model missing for table: south_migrationhistory\n', '-- Model missing for table: cache\n', ]: if row in diff: From 0b8ea2d517e694dd7fce9aa8ca973daac37bc7a9 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 22 Jul 2019 11:11:42 +0200 Subject: [PATCH 4/4] space --- static/js/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/utils.js b/static/js/utils.js index 8bb3a9dc..79ab43d8 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -406,7 +406,7 @@ pandora.createLinks = function($element) { pandora.uploadDroppedFiles = function(files) { var documentExtensions = ['pdf', /* 'epub', 'txt', */ 'png', 'gif', 'jpg']; - files = Ox.map(files, function(file) { return file}); + files = Ox.map(files, function(file) { return file }); if (files.every(function(file) { var extension = file.name.split('.').pop().toLowerCase()