mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
9e440c7635
commit
db078e4ebb
@ -560,44 +560,44 @@ var URLHistoryUIActions = actions.Actions({
|
||||
},
|
||||
// add item buttons...
|
||||
{ itemButtons: [
|
||||
// open...
|
||||
['<span class="show-on-hover">↗</span>',
|
||||
function(p){ o.browsePath(p) }],
|
||||
// move to top...
|
||||
//['<span class="show-on-hover">♦</span>',
|
||||
['♦',
|
||||
function(p){
|
||||
that.setTopURLHistory(p)
|
||||
o.redraw(p)
|
||||
}],
|
||||
// pin to top...
|
||||
// XXX should this be standard functionality???
|
||||
['<span class="pin-set">●</span>'
|
||||
+'<span class="pin-unset">○</span>',
|
||||
function(p, cur){
|
||||
// change state...
|
||||
// pinned...
|
||||
if(cur.hasClass('pinned')){
|
||||
cur.removeClass('pinned')
|
||||
that.toggleURLPinned(p, 'off')
|
||||
// open...
|
||||
['<span class="show-on-hover">↗</span>',
|
||||
function(p){
|
||||
o.browsePath(p) }],
|
||||
// move to top...
|
||||
//['<span class="show-on-hover">♦</span>',
|
||||
['♦',
|
||||
function(p){
|
||||
that.setTopURLHistory(p)
|
||||
o.redraw(p)
|
||||
}],
|
||||
// pin to top...
|
||||
// XXX should this be standard functionality???
|
||||
['<span class="pin-set">●</span>'
|
||||
+'<span class="pin-unset">○</span>',
|
||||
function(p, cur){
|
||||
// change state...
|
||||
// pinned...
|
||||
if(cur.hasClass('pinned')){
|
||||
cur.removeClass('pinned')
|
||||
that.toggleURLPinned(p, 'off')
|
||||
|
||||
// not pinned...
|
||||
} else {
|
||||
cur.addClass('pinned')
|
||||
that.toggleURLPinned(p, 'on')
|
||||
}
|
||||
// not pinned...
|
||||
} else {
|
||||
cur.addClass('pinned')
|
||||
that.toggleURLPinned(p, 'on')
|
||||
}
|
||||
|
||||
// focus...
|
||||
that.config['url-history-focus-on-pin']
|
||||
&& o.select(cur)
|
||||
// focus...
|
||||
that.config['url-history-focus-on-pin']
|
||||
&& o.select(cur)
|
||||
|
||||
// place...
|
||||
o.redraw()
|
||||
}],
|
||||
// mark for removal...
|
||||
browse.buttons.markForRemoval(to_remove)
|
||||
],
|
||||
})
|
||||
// place...
|
||||
o.redraw()
|
||||
}],
|
||||
// mark for removal...
|
||||
browse.buttons.markForRemoval(to_remove)
|
||||
] })
|
||||
.open(function(evt, path){
|
||||
removeStriked('open')
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user