minor tweaks...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-04-12 08:06:45 +03:00
parent 8982365b03
commit fadd474101
2 changed files with 7 additions and 6 deletions

View File

@ -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)

View File

@ -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)