mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
a602cf122e
commit
76992ea5fa
@ -563,6 +563,7 @@ var DataPrototype = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// first/last special case...
|
// first/last special case...
|
||||||
|
// XXX need to get first loaded...
|
||||||
if(target == 'first'){
|
if(target == 'first'){
|
||||||
list = this.ribbons[this.getRibbon(mode)]
|
list = this.ribbons[this.getRibbon(mode)]
|
||||||
for(var res in list){
|
for(var res in list){
|
||||||
|
|||||||
@ -206,22 +206,19 @@ $(function(){
|
|||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
// XXX for some reason this does not happen right away...
|
// XXX for some reason this is not visible when loading...
|
||||||
a.setEmptyMsg('Loading...')
|
a.setEmptyMsg('Loading...')
|
||||||
|
|
||||||
|
|
||||||
viewer.Features.setup(a, [
|
viewer.Features.setup(a, [
|
||||||
// XXX I do not fully understand it yet, but PartialRibbons must be
|
// features...
|
||||||
// setup BEFORE AlignRibbonsTo*, otherwise the later will break
|
// NOTE: partial ribbons needs to be setup first...
|
||||||
// on shifting an image to a new ribbon...
|
// ...the reasons why things break otherwise is not too clear.
|
||||||
// To reproduce:
|
|
||||||
// - setupe RibbonAlignToFirst first
|
|
||||||
// - go to top ribbon
|
|
||||||
// - shift image up
|
|
||||||
'ui-partial-ribbons',
|
'ui-partial-ribbons',
|
||||||
'ui-ribbon-align-to-order',
|
'ui-ribbon-align-to-order',
|
||||||
'ui-single-image-view',
|
'ui-single-image-view',
|
||||||
|
|
||||||
|
// ui elements...
|
||||||
'image-marks',
|
'image-marks',
|
||||||
'image-bookmarks',
|
'image-bookmarks',
|
||||||
|
|
||||||
@ -229,7 +226,6 @@ $(function(){
|
|||||||
'ui-animation',
|
'ui-animation',
|
||||||
'ui-bounds-indicators',
|
'ui-bounds-indicators',
|
||||||
'ui-current-image-indicator',
|
'ui-current-image-indicator',
|
||||||
|
|
||||||
])
|
])
|
||||||
|
|
||||||
// this publishes all the actions...
|
// this publishes all the actions...
|
||||||
|
|||||||
@ -240,7 +240,7 @@ actions.Actions({
|
|||||||
// adding new items to the resulting structure...
|
// adding new items to the resulting structure...
|
||||||
// XXX is this the correct way to go???
|
// XXX is this the correct way to go???
|
||||||
// ...can we save simple attribute values???
|
// ...can we save simple attribute values???
|
||||||
dump: ['Dump state as JSOM object',
|
json: ['Dump state as JSOM object',
|
||||||
'This will collect JSON data from every afailable attribute '
|
'This will collect JSON data from every afailable attribute '
|
||||||
+'supporting the .dumpJSON() method.',
|
+'supporting the .dumpJSON() method.',
|
||||||
function(){
|
function(){
|
||||||
@ -291,6 +291,8 @@ actions.Actions({
|
|||||||
function(all){ this.focusImage(all == null ? 'first' : 0) }],
|
function(all){ this.focusImage(all == null ? 'first' : 0) }],
|
||||||
lastImage: ['Focus last image in current ribbon',
|
lastImage: ['Focus last image in current ribbon',
|
||||||
function(all){ this.focusImage(all == null ? 'last' : -1) }],
|
function(all){ this.focusImage(all == null ? 'last' : -1) }],
|
||||||
|
// XXX these break if image at first/last position are not loaded (crop, group, ...)
|
||||||
|
// XXX do we actually need these???
|
||||||
firstGlobalImage: ['Get first globally image',
|
firstGlobalImage: ['Get first globally image',
|
||||||
function(){ this.firstImage(true) }],
|
function(){ this.firstImage(true) }],
|
||||||
lastGlobalImage: ['Get last globally image',
|
lastGlobalImage: ['Get last globally image',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user