diff --git a/ui/compatibility.js b/ui/compatibility.js index c0b04175..d396b940 100755 --- a/ui/compatibility.js +++ b/ui/compatibility.js @@ -6,6 +6,16 @@ //var DEBUG = DEBUG != null ? DEBUG : true +// XXX move this to the config... +var PREVIEW_SIZES = [ + // NOTE: this is first so as to prevent the hi-res from loading... + // XXX this is best to be screen sized or just a little bigger... + 1280, + 150, + 350, + 900 +] + /*********************************************************************/ @@ -132,12 +142,7 @@ if(window.CEF_dumpJSON != null){ // prepare the sizes we are going to be working with... if(sizes == null){ - // XXX get real sizes from config... - var sizes = [ - 150, - 350, - 900 - ] + sizes = PREVIEW_SIZES } else if(typeof(sizes) == typeof(123)){ sizes = [ sizes ] } diff --git a/ui/ui.js b/ui/ui.js index cdcb8a6e..c4da87e6 100755 --- a/ui/ui.js +++ b/ui/ui.js @@ -381,6 +381,7 @@ function hideOverlay(root){ var FIELD_TYPES = { // format: // string + // XXX add datalist option... text: { type: 'text', text: null, @@ -454,6 +455,7 @@ var FIELD_TYPES = { // NOTE: this will not work without node-webkit... // format: // { dir: } + // XXX add datalist option... ndir: { type: 'ndir', text: null, @@ -755,6 +757,7 @@ function getDir(message, dfl, btn){ // XXX do reporting... // XXX would be nice to save settings... +// ...might be good to use datalist... function exportPreviewsDialog(state, dfl){ dfl = dfl == null ? BASE_URL : dfl