mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
minor tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
8982365b03
commit
fadd474101
@ -54,7 +54,7 @@ var StatusBarActions = actions.Actions({
|
||||
'status-bar-items': [
|
||||
'index',
|
||||
'gid',
|
||||
//'path',
|
||||
'path',
|
||||
|
||||
// separates left/right aligned elements...
|
||||
'---',
|
||||
@ -226,10 +226,12 @@ var StatusBarActions = actions.Actions({
|
||||
text = gid || '-'
|
||||
|
||||
// path...
|
||||
// XXX
|
||||
// XXX use generic, platform independent path processing...
|
||||
} else if(type == 'path'){
|
||||
text = img && img.path || '---'
|
||||
txt = text
|
||||
text = (img && ((img.base_path || '') +'/'+ img.path) || '---')
|
||||
// remove /./
|
||||
.replace(/[\\\/]\.[\\\/]/, '/')
|
||||
txt = text.split(/[\\\/]/).pop()
|
||||
}
|
||||
|
||||
item.find('.shown').text(txt)
|
||||
|
||||
@ -1132,7 +1132,7 @@ var PartialRibbonsActions = actions.Actions({
|
||||
&& that.images.getBestPreview(c, size, true).url
|
||||
}
|
||||
|
||||
// get a stet of paths...
|
||||
// get a set of paths...
|
||||
// NOTE: we are also ordering the resulting gids by their
|
||||
// distance from target...
|
||||
var _get = function(i, lst, source, radius, oddity, step){
|
||||
@ -1261,7 +1261,6 @@ var PartialRibbonsActions = actions.Actions({
|
||||
// no threshold means force load...
|
||||
if(threshold == 0
|
||||
// the target is not loaded...
|
||||
//|| this.ribbons.getImage(target).length == 0
|
||||
|| img.length == 0
|
||||
// passed hard threshold on the right...
|
||||
|| (nl < w && na > nl)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user