mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
8aea6b748e
commit
b3d80100dd
@ -549,10 +549,11 @@ var URLHistoryUIActions = actions.Actions({
|
|||||||
// move to top...
|
// move to top...
|
||||||
['♦',
|
['♦',
|
||||||
function(p){
|
function(p){
|
||||||
// XXX this is a tad slower, is "simpler" worth it?
|
that.setTopURLHistory(p)
|
||||||
//that.setTopURLHistory(p)
|
o.redraw(p)
|
||||||
//o.redraw()
|
|
||||||
|
|
||||||
|
/* XXX this is a tad faster, is the added
|
||||||
|
// complexity worth it??
|
||||||
var cur = this.filter('"'+p+'"', false)
|
var cur = this.filter('"'+p+'"', false)
|
||||||
|
|
||||||
var top = cur.hasClass('pinned') ?
|
var top = cur.hasClass('pinned') ?
|
||||||
@ -564,6 +565,7 @@ var URLHistoryUIActions = actions.Actions({
|
|||||||
top.before(cur)
|
top.before(cur)
|
||||||
that.setTopURLHistory(p)
|
that.setTopURLHistory(p)
|
||||||
}
|
}
|
||||||
|
//*/
|
||||||
}],
|
}],
|
||||||
// pin to top...
|
// pin to top...
|
||||||
// XXX should this be standard functionality???
|
// XXX should this be standard functionality???
|
||||||
@ -636,10 +638,13 @@ var URLHistoryUIActions = actions.Actions({
|
|||||||
// because this will only change positions of a view dom
|
// because this will only change positions of a view dom
|
||||||
// elements while .update(..) will redraw the while thing...
|
// elements while .update(..) will redraw the while thing...
|
||||||
// NOTE: this also uses fs_state for caching...
|
// NOTE: this also uses fs_state for caching...
|
||||||
o.redraw = function(){
|
o.redraw = function(path){
|
||||||
var list = o.dom.find('.list')
|
var list = o.dom.find('.list')
|
||||||
makeHistoryList(fs_state)
|
makeHistoryList(fs_state)
|
||||||
.forEach(function(elem, i){
|
.forEach(function(elem, i){
|
||||||
|
if(path && path != elem[0]){
|
||||||
|
return
|
||||||
|
}
|
||||||
// move...
|
// move...
|
||||||
if(list.children().eq(i).attr('path') != elem[0]){
|
if(list.children().eq(i).attr('path') != elem[0]){
|
||||||
list.children().eq(i)
|
list.children().eq(i)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user