diff --git a/ui/data.js b/ui/data.js index cbd730fa..f0a171ea 100755 --- a/ui/data.js +++ b/ui/data.js @@ -718,6 +718,10 @@ function convertDataGen1(data, cmp){ */ // Update an image element +// +// NOTE: care must be taken to reset ALL attributes an image can have, +// a common bug if this is not done correctly, is that some settings +// may leak to newly loaded images... function updateImage(image, gid, size){ image = $(image) var title = '' @@ -1031,6 +1035,11 @@ function loadSettings(){ * Image caching... */ +// TODO add global cache... +// - manage cache by number and preview size... +// - keep in biggish... + + // NOTE: this will always overwrite the previous cache set for a ribbon... // NOTE: it appears that sorting images by priority before loading them // to cache has little or no affect on the order they are diff --git a/ui/layout.less b/ui/layout.less index 544fcd16..a9baff4a 100755 --- a/ui/layout.less +++ b/ui/layout.less @@ -51,8 +51,8 @@ } -/*********************************************************************/ +/*********************************************************************/ body { font-family: sans-serif; @@ -215,8 +215,7 @@ body { /* default backgrounds */ -/* XXX not sure if we need these... */ -/* +/* XXX not sure if we need these... .image { background-image: url(images/loading.gif); } @@ -685,6 +684,7 @@ body { /********************************************** Mode: single image ***/ + .single-image-mode.viewer .image { background-color: transparent; /* NOTE: need to keep a distance from screen borders... */ @@ -703,6 +703,7 @@ body { /********************************************************** Themes ***/ + /* XXX this is by no means final... */ .viewer, .light.viewer, @@ -723,6 +724,7 @@ body { /********************************************************* Overlay ***/ + .overlay-block { display: none; position: absolute: @@ -748,6 +750,7 @@ body { /************************************************************ Help ***/ + /* this is for sliding stuff */ .viewer.drawer-mode { box-shadow: 0px 0px 50px 0px silver;