mirror of
https://github.com/flynx/ImageGrid.git
synced 2026-01-06 02:11:09 +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 ***/
|
||||
|
||||
// XXX do reporting...
|
||||
function exportPreviewsDialog(dfl){
|
||||
function exportPreviewsDialog(state, 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()
|
||||
|
||||
updateStatus('Export...').show()
|
||||
|
||||
formDialog(null, 'Export previews', {
|
||||
formDialog(null, '<b>Export source:</b> '+ state +'.', {
|
||||
'Image name pattern': '%f',
|
||||
'Fav directory name': 'fav',
|
||||
'Destination': {ndir: dfl},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user