some refactoring...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-07-07 03:19:41 +04:00
parent b631d1c125
commit 0503a72993
2 changed files with 14 additions and 6 deletions

View File

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

View File

@ -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: <default-path> }
// 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