mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
some refactoring...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
b631d1c125
commit
0503a72993
@ -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 ]
|
||||
}
|
||||
|
||||
3
ui/ui.js
3
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: <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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user