Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-08-17 16:41:56 +03:00
parent 1762192352
commit a953a3817c
2 changed files with 7 additions and 6 deletions

View File

@ -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),

View File

@ -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