Compare commits
4 commits
0076aae896
...
0b8ea2d517
| Author | SHA1 | Date | |
|---|---|---|---|
| 0b8ea2d517 | |||
| 115f05625c | |||
| 33b105b9b8 | |||
| f838a6be60 |
4 changed files with 14 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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});
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue