mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
add edit hotkey to export presets...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
9f5d1d5539
commit
0c5c58a09d
@ -3124,6 +3124,9 @@ var FileSystemWriterUIActions = actions.Actions({
|
|||||||
'exportDialog: "images"'],
|
'exportDialog: "images"'],
|
||||||
|
|
||||||
|
|
||||||
|
// XXX BUG: editing the path of a duplicate ("... (n)") preset first
|
||||||
|
// replaces the wrong preset in the list but after reopening
|
||||||
|
// the dialog everything is correct...
|
||||||
// XXX UI:
|
// XXX UI:
|
||||||
// - element format:
|
// - element format:
|
||||||
// TITLE
|
// TITLE
|
||||||
@ -3219,7 +3222,7 @@ var FileSystemWriterUIActions = actions.Actions({
|
|||||||
make.dialog.select(to) }) },
|
make.dialog.select(to) }) },
|
||||||
buttons: [
|
buttons: [
|
||||||
// edit...
|
// edit...
|
||||||
['<small class="show-on-hover">edit</small>',
|
['<small class="show-on-hover view-or-edit">edit</small>',
|
||||||
function(title){
|
function(title){
|
||||||
var preset = preset_index.get(title)
|
var preset = preset_index.get(title)
|
||||||
var o = getName(preset)
|
var o = getName(preset)
|
||||||
@ -3283,7 +3286,7 @@ var FileSystemWriterUIActions = actions.Actions({
|
|||||||
editable_items: false,
|
editable_items: false,
|
||||||
buttons: [
|
buttons: [
|
||||||
// view...
|
// view...
|
||||||
['<small class="show-on-hover">view</small>',
|
['<small class="show-on-hover view-or-edit">view</small>',
|
||||||
function(title){
|
function(title){
|
||||||
var preset = history_index.get(title)
|
var preset = history_index.get(title)
|
||||||
preset
|
preset
|
||||||
@ -3324,10 +3327,20 @@ var FileSystemWriterUIActions = actions.Actions({
|
|||||||
// keyboard...
|
// keyboard...
|
||||||
.run(function(){
|
.run(function(){
|
||||||
var that = this
|
var that = this
|
||||||
this.keyboard.on('E', function(){
|
this.keyboard
|
||||||
// XXX trigger edit/view button...
|
// edit/view...
|
||||||
})
|
.on('E', function(){
|
||||||
})
|
that
|
||||||
|
.select()
|
||||||
|
.find('.view-or-edit')
|
||||||
|
.click() })
|
||||||
|
// mark for deletion...
|
||||||
|
// XXX move to browse...
|
||||||
|
.on('D', function(){
|
||||||
|
that
|
||||||
|
.select()
|
||||||
|
// XXX
|
||||||
|
}) })
|
||||||
// save things after we are done...
|
// save things after we are done...
|
||||||
.close(function(){
|
.close(function(){
|
||||||
// update preset order and count...
|
// update preset order and count...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user