mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
notes
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
1762192352
commit
a953a3817c
@ -108,9 +108,10 @@ module.Alias = core.ImageGridFeatures.Feature({
|
||||
//---------------------------------------------------------------------
|
||||
|
||||
var UIAliasActions = actions.Actions({
|
||||
// XXX should this update the parent???
|
||||
// XXX updating this does not work yet...
|
||||
browseAliases: ['System/Aliases...',
|
||||
core.doc`Action alias list
|
||||
|
||||
NOTE: this may affect the action menu, to see changes update the menu.`,
|
||||
widgets.makeUIDialog(function(){
|
||||
var that = this
|
||||
|
||||
@ -129,10 +130,7 @@ var UIAliasActions = actions.Actions({
|
||||
|
||||
var names = Object.keys(aliases)
|
||||
|
||||
console.log('>>>>>>>>>>>', names)
|
||||
|
||||
names.length > 0 ?
|
||||
// XXX for some reason this does not get updated on dialog.update()
|
||||
make.EditableList(names,
|
||||
{
|
||||
new_item: false,
|
||||
@ -145,7 +143,6 @@ var UIAliasActions = actions.Actions({
|
||||
},
|
||||
|
||||
each: function(name, elem){
|
||||
console.log('>>>>', name)
|
||||
$(elem)
|
||||
.attr({
|
||||
keys: getKeys(name),
|
||||
|
||||
@ -668,6 +668,10 @@ function(data, options){
|
||||
// NOTE: the list must contain strings.
|
||||
//
|
||||
// XXX should id be the first argument??
|
||||
// XXX TEST: potential problem: when reloading the list this will
|
||||
// overwrite the .__list[id] cache, with the input list, this may
|
||||
// result in losing the edited state if the lists were not synced
|
||||
// properly...
|
||||
Items.EditableList =
|
||||
function(list, options){
|
||||
var make = this
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user