mirror of
https://github.com/flynx/ImageGrid.git
synced 2026-01-09 03:41:10 +00:00
added state information to export dialog...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
0821b527c4
commit
fc8e39cb41
12
ui/ui.js
12
ui/ui.js
@ -684,13 +684,21 @@ function getDir(message, dfl, btn){
|
|||||||
/***************************************** Domain-specific dialogs ***/
|
/***************************************** Domain-specific dialogs ***/
|
||||||
|
|
||||||
// XXX do reporting...
|
// XXX do reporting...
|
||||||
function exportPreviewsDialog(dfl){
|
function exportPreviewsDialog(state, dfl){
|
||||||
dfl = dfl == null ? BASE_URL : dfl
|
dfl = dfl == null ? BASE_URL : dfl
|
||||||
|
|
||||||
|
// XXX make this more generic...
|
||||||
|
if(state == null){
|
||||||
|
state = toggleMarkedOnlyView('?') == 'on' ? 'marked images' : state
|
||||||
|
state = toggleSingleRibbonMode('?') == 'on' ? 'current ribbon' : state
|
||||||
|
state = state == null ? 'all images' : state
|
||||||
|
}
|
||||||
|
|
||||||
var res = $.Deferred()
|
var res = $.Deferred()
|
||||||
|
|
||||||
updateStatus('Export...').show()
|
updateStatus('Export...').show()
|
||||||
|
|
||||||
formDialog(null, 'Export previews', {
|
formDialog(null, '<b>Export source:</b> '+ state +'.', {
|
||||||
'Image name pattern': '%f',
|
'Image name pattern': '%f',
|
||||||
'Fav directory name': 'fav',
|
'Fav directory name': 'fav',
|
||||||
'Destination': {ndir: dfl},
|
'Destination': {ndir: dfl},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user