docs + cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-02-08 03:16:40 +03:00
parent 018f4aafd0
commit 6db23078e7
2 changed files with 9 additions and 7 deletions

View File

@ -641,7 +641,6 @@ var URLHistoryUIActions = actions.Actions({
// XXX need to sort pins...
// XXX need to save pins...
// XXX 'to top' button???
listURLHistory2: ['History|File/Location history (new)...',
widgets.makeUIDialog(function(){
var that = this
@ -738,7 +737,7 @@ var URLHistoryUIActions = actions.Actions({
// open...
['<span class="show-on-hover">&#8599;</span>',
function(p){ dialog.browsePath(p) }],
// XXX should the normal items have a "to top" button???
// XXX should the pins have a "to top" button???
['&diams;', 'TO_TOP'],
'PIN',
'REMOVE',

View File

@ -961,20 +961,23 @@ function(list, options){
//
// Format:
// {
// // equivalent to .length_limit option in .List(..) but applies
// // Equivalent to .length_limit option in .List(..) but applies
// // only to pins...
// pins_length_limit: .. ,
//
// // equivalent to .sortable option in .List(..) but applies only
// // Equivalent to .sortable option in .List(..) but applies only
// // to pins...
// pins_sortable: .. ,
//
// // Equivalent to .buttons option in .List(..) but applies only
// // to pins...
// // If this is not given the same buttons are used for both lists.
// pins_buttons: .. ,
//
// ...
// }
//
// XXX should id be the first argument??
// XXX should this be a single list or two lists???
// ...with a single list it's simpler to play with items w/o full updates...
Items.EditablePinnedList =
function(list, pins, options){
var that = this
@ -1046,7 +1049,7 @@ function(list, pins, options){
isItemHidden: null,
buttons: options.buttons.slice(),
buttons: (options.pins_buttons || options.buttons).slice(),
}
pins_options.__proto__ = options
var sortable = pins_options.sortable =