diff --git a/ui (gen4)/features/history.js b/ui (gen4)/features/history.js index d3815859..73d428b6 100755 --- a/ui (gen4)/features/history.js +++ b/ui (gen4)/features/history.js @@ -560,44 +560,44 @@ var URLHistoryUIActions = actions.Actions({ }, // add item buttons... { itemButtons: [ - // open... - ['', - function(p){ o.browsePath(p) }], - // move to top... - //['', - ['♦', - function(p){ - that.setTopURLHistory(p) - o.redraw(p) - }], - // pin to top... - // XXX should this be standard functionality??? - ['' - +'', - function(p, cur){ - // change state... - // pinned... - if(cur.hasClass('pinned')){ - cur.removeClass('pinned') - that.toggleURLPinned(p, 'off') + // open... + ['', + function(p){ + o.browsePath(p) }], + // move to top... + //['', + ['♦', + function(p){ + that.setTopURLHistory(p) + o.redraw(p) + }], + // pin to top... + // XXX should this be standard functionality??? + ['' + +'', + 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')