mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-11-01 11:50:07 +00:00
minor fixups...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
c6d79a248a
commit
a11c717100
@ -1069,6 +1069,7 @@ function makeKeyboardHandler(keybindings, unhandled){
|
|||||||
ImageGrid.GROUP('Mode: All',
|
ImageGrid.GROUP('Mode: All',
|
||||||
ImageGrid.ACTION({
|
ImageGrid.ACTION({
|
||||||
title: 'Get the background mode',
|
title: 'Get the background mode',
|
||||||
|
display: false,
|
||||||
},
|
},
|
||||||
function getBackgroundMode(){
|
function getBackgroundMode(){
|
||||||
var mode = null
|
var mode = null
|
||||||
@ -1084,7 +1085,8 @@ ImageGrid.GROUP('Mode: All',
|
|||||||
}),
|
}),
|
||||||
ImageGrid.ACTION({
|
ImageGrid.ACTION({
|
||||||
title: 'Set the background mode',
|
title: 'Set the background mode',
|
||||||
doc: 'NOTE: passing null will set the default.'
|
doc: 'NOTE: passing null will set the default.',
|
||||||
|
display: false,
|
||||||
},
|
},
|
||||||
function setBackgroundMode(mode){
|
function setBackgroundMode(mode){
|
||||||
var BACKGROUND_MODES = ImageGrid.option.BACKGROUND_MODES
|
var BACKGROUND_MODES = ImageGrid.option.BACKGROUND_MODES
|
||||||
@ -1471,6 +1473,7 @@ ImageGrid.GROUP('Navigation',
|
|||||||
ImageGrid.GROUP('Zooming',
|
ImageGrid.GROUP('Zooming',
|
||||||
ImageGrid.ACTION({
|
ImageGrid.ACTION({
|
||||||
title: 'Scale container by factor',
|
title: 'Scale container by factor',
|
||||||
|
display: false,
|
||||||
},
|
},
|
||||||
function scaleContainerBy(factor){
|
function scaleContainerBy(factor){
|
||||||
return ImageGrid.setContainerScale(getElementScale($('.field'))*factor)
|
return ImageGrid.setContainerScale(getElementScale($('.field'))*factor)
|
||||||
@ -1498,6 +1501,7 @@ ImageGrid.GROUP('Zooming',
|
|||||||
|
|
||||||
ImageGrid.ACTION({
|
ImageGrid.ACTION({
|
||||||
title: 'Fit N images to container width/height',
|
title: 'Fit N images to container width/height',
|
||||||
|
display: false,
|
||||||
},
|
},
|
||||||
function fitNImages(n){
|
function fitNImages(n){
|
||||||
var H = $('.container').height()
|
var H = $('.container').height()
|
||||||
@ -1687,8 +1691,8 @@ ImageGrid.GROUP('Image manipulation',
|
|||||||
|
|
||||||
// sorting...
|
// sorting...
|
||||||
ImageGrid.ACTION({
|
ImageGrid.ACTION({
|
||||||
title: 'Sort images via a different criteria',
|
title: 'Sort images via criteria',
|
||||||
doc: 'use the cmp function to update image id\'s and resort.',
|
doc: 'Use the cmp function to update image id\'s and resort.',
|
||||||
display: false,
|
display: false,
|
||||||
},
|
},
|
||||||
function sortImagesVia(cmp){
|
function sortImagesVia(cmp){
|
||||||
@ -1699,8 +1703,9 @@ ImageGrid.GROUP('Image manipulation',
|
|||||||
ImageGrid.sortImages()
|
ImageGrid.sortImages()
|
||||||
}),
|
}),
|
||||||
ImageGrid.ACTION({
|
ImageGrid.ACTION({
|
||||||
title: 'Sort images in all ribbons',
|
title: 'Sort images',
|
||||||
doc: 'NOTE: this will only realign three ribbons.'
|
doc: 'Sort images in all ribbons\n\n'+
|
||||||
|
'NOTE: this will only realign three ribbons.'
|
||||||
},
|
},
|
||||||
function sortImages(){
|
function sortImages(){
|
||||||
$('.ribbon').sortChildren(cmpImageOrder)
|
$('.ribbon').sortChildren(cmpImageOrder)
|
||||||
@ -1708,7 +1713,8 @@ ImageGrid.GROUP('Image manipulation',
|
|||||||
$('.current.image').click()
|
$('.current.image').click()
|
||||||
}),
|
}),
|
||||||
ImageGrid.ACTION({
|
ImageGrid.ACTION({
|
||||||
title: 'Reverse order of images in all ribbons',
|
title: 'Reverse order of images',
|
||||||
|
doc: 'this will reverse image order in all ribbons.',
|
||||||
},
|
},
|
||||||
function reverseImageOrder(){
|
function reverseImageOrder(){
|
||||||
// this is done by reversing their id attr
|
// this is done by reversing their id attr
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user