added state information to export dialog...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-06-27 17:29:53 +04:00
parent 0821b527c4
commit fc8e39cb41

View File

@ -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},