mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
some minor stuff and fixes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
74924936ba
commit
573ce76333
@ -593,11 +593,11 @@ var FileSystemWriterActions = actions.Actions({
|
||||
// - horizontal
|
||||
// - ...
|
||||
'export-preview-sizes': [
|
||||
500,
|
||||
900,
|
||||
1000,
|
||||
1280,
|
||||
1920,
|
||||
'500',
|
||||
'900',
|
||||
'1000',
|
||||
'1280',
|
||||
'1920',
|
||||
],
|
||||
},
|
||||
|
||||
@ -949,7 +949,7 @@ var FileSystemWriterActions = actions.Actions({
|
||||
|
||||
|
||||
// get best preview...
|
||||
var from = (img.base_path || base_dir) +'/'+ that.images.getBestPreview(gid, size).url
|
||||
var from = decodeURI((img.base_path || base_dir) +'/'+ that.images.getBestPreview(gid, size).url)
|
||||
|
||||
// XXX see if we need to make a preview (sharp)
|
||||
// XXX
|
||||
@ -1245,7 +1245,10 @@ var FileSystemWriterUIActions = actions.Actions({
|
||||
.on('open',
|
||||
widgets.makeNestedConfigListEditor(actions, overlay,
|
||||
'export-preview-sizes',
|
||||
'export-preview-size'))
|
||||
'export-preview-size',
|
||||
{
|
||||
sort: function(a, b){ return parseInt(a) - parseInt(b) },
|
||||
}))
|
||||
|
||||
},
|
||||
// XXX BUG: history closing errors -- non-critical...
|
||||
@ -1276,7 +1279,6 @@ var FileSystemWriterUIActions = actions.Actions({
|
||||
'export-paths',
|
||||
'export-path',
|
||||
{
|
||||
unique: true,
|
||||
new_button: false,
|
||||
})],
|
||||
]})
|
||||
@ -1293,7 +1295,8 @@ var FileSystemWriterUIActions = actions.Actions({
|
||||
})
|
||||
.on('edit-done', function(_, path){
|
||||
actions.config['export-path'] = path
|
||||
actions.config['export-paths'].splice(0, 0, path)
|
||||
actions.config['export-paths'].indexOf(path) < 0
|
||||
&& actions.config['export-paths'].splice(0, 0, path)
|
||||
|
||||
})
|
||||
.on('edit-aborted edit-done', function(evt, path){
|
||||
|
||||
@ -125,11 +125,14 @@ function(actions, list_key, options){
|
||||
.push(txt)
|
||||
|
||||
// unique...
|
||||
if(options.unique == null || options.unique){
|
||||
if(options.unique == null || options.unique === true){
|
||||
actions.config[list_key] = actions.config[list_key]
|
||||
.unique(typeof(options.unique) == typeof(function(){}) ?
|
||||
options.unique
|
||||
: undefined)
|
||||
.unique()
|
||||
|
||||
// unique normalized...
|
||||
} else if( typeof(options.unique) == typeof(function(){})){
|
||||
actions.config[list_key] = actions.config[list_key]
|
||||
.unique(options.unique)
|
||||
}
|
||||
|
||||
// sort...
|
||||
@ -235,10 +238,11 @@ function(actions, list_key, options){
|
||||
var makeNestedConfigListEditor =
|
||||
module.makeNestedConfigListEditor =
|
||||
function(actions, parent, list_key, value_key, options){
|
||||
options = options || {}
|
||||
|
||||
return function(){
|
||||
var txt = $(this).find('.text').first().text()
|
||||
|
||||
options = options || {}
|
||||
var dfl_options = {
|
||||
new_button: 'New...',
|
||||
length_limit: 10,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user