mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +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({
|
var UIAliasActions = actions.Actions({
|
||||||
// XXX should this update the parent???
|
|
||||||
// XXX updating this does not work yet...
|
|
||||||
browseAliases: ['System/Aliases...',
|
browseAliases: ['System/Aliases...',
|
||||||
|
core.doc`Action alias list
|
||||||
|
|
||||||
|
NOTE: this may affect the action menu, to see changes update the menu.`,
|
||||||
widgets.makeUIDialog(function(){
|
widgets.makeUIDialog(function(){
|
||||||
var that = this
|
var that = this
|
||||||
|
|
||||||
@ -129,10 +130,7 @@ var UIAliasActions = actions.Actions({
|
|||||||
|
|
||||||
var names = Object.keys(aliases)
|
var names = Object.keys(aliases)
|
||||||
|
|
||||||
console.log('>>>>>>>>>>>', names)
|
|
||||||
|
|
||||||
names.length > 0 ?
|
names.length > 0 ?
|
||||||
// XXX for some reason this does not get updated on dialog.update()
|
|
||||||
make.EditableList(names,
|
make.EditableList(names,
|
||||||
{
|
{
|
||||||
new_item: false,
|
new_item: false,
|
||||||
@ -145,7 +143,6 @@ var UIAliasActions = actions.Actions({
|
|||||||
},
|
},
|
||||||
|
|
||||||
each: function(name, elem){
|
each: function(name, elem){
|
||||||
console.log('>>>>', name)
|
|
||||||
$(elem)
|
$(elem)
|
||||||
.attr({
|
.attr({
|
||||||
keys: getKeys(name),
|
keys: getKeys(name),
|
||||||
|
|||||||
@ -668,6 +668,10 @@ function(data, options){
|
|||||||
// NOTE: the list must contain strings.
|
// NOTE: the list must contain strings.
|
||||||
//
|
//
|
||||||
// XXX should id be the first argument??
|
// 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 =
|
Items.EditableList =
|
||||||
function(list, options){
|
function(list, options){
|
||||||
var make = this
|
var make = this
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user