ImageGrid/ui/modes.js
Alex A. Naanou 92fd990961 added single image mode...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2013-05-17 15:47:23 +04:00

30 lines
755 B
JavaScript
Executable File

/**********************************************************************
*
*
*
**********************************************************************/
//var DEBUG = DEBUG != null ? DEBUG : true
/*********************************************************************/
// XXX make this save and restore settings...
var toggleSingleImageMode = createCSSClassToggler('.viewer',
'single-image-mode',
function(action){
if(action == 'on'){
TRANSITION_MODE_DEFAULT = 'css'
fitNImages(1)
} else {
TRANSITION_MODE_DEFAULT = 'animate'
fitNImages(5)
}
})
/**********************************************************************
* vim:set ts=4 sw=4 : */