From 543edd493cd442383beb1900e709741725831fdb Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 2 Oct 2015 17:32:13 +0300 Subject: [PATCH] experimenting with dir listing approaches... Signed-off-by: Alex A. Naanou --- ui (gen4)/lib/widget/widget.js | 11 +++++++++-- ui (gen4)/viewer.js | 8 ++++---- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/ui (gen4)/lib/widget/widget.js b/ui (gen4)/lib/widget/widget.js index ceb266af..23cb774b 100755 --- a/ui (gen4)/lib/widget/widget.js +++ b/ui (gen4)/lib/widget/widget.js @@ -86,8 +86,8 @@ var WidgetPrototype = { // XXX this will not: - // - attach dom to parent... - // - handle focus... + // - attach dom to parent... (???) + // - handle focus... (???) // XXX same as ContainerPrototype.__init__ but skips client... __init__: function(parent, options){ var that = this @@ -105,6 +105,13 @@ var WidgetPrototype = { this.dom = this.constructor.make(options) } + // XXX do we do this here??? + /* + if(parent && this.dom){ + parent.append(this.dom) + } + */ + // add keyboard handler... if(this.keyboard && this.dom){ this.dom.keydown( diff --git a/ui (gen4)/viewer.js b/ui (gen4)/viewer.js index ca3e1cb3..17c712ae 100755 --- a/ui (gen4)/viewer.js +++ b/ui (gen4)/viewer.js @@ -2302,13 +2302,13 @@ var ActionTreeActions = actions.Actions({ })], // XXX this is just a test... - embededListerTest: ['Interface/Lister test (embeded)/*', + embededListerTest: ['Interface|Test/Lister test (embeded)/*', function(path, make){ make('a/') make('b/') make('c/') }], - floatingListerTest: ['Interface/Lister test (floating)...', + floatingListerTest: ['Interface|Test/Lister test (floating)...', function(path){ var parent = this.preventClosing ? this.preventClosing() : null @@ -2350,7 +2350,7 @@ var ActionTreeActions = actions.Actions({ }) }], // XXX make this nw only... - pathListerTest: ['Interface/Path lister test (floating)...', + pathListerTest: ['Interface|Test/Path lister test (floating)...', function(path){ var parent = this.preventClosing ? this.preventClosing() : null @@ -2380,7 +2380,7 @@ var ActionTreeActions = actions.Actions({ && parent.focus() }) }], - drawerTest:['Interface/Drawer widget test', + drawerTest:['Interface|Test/Drawer widget test', function(){ drawer.Drawer($('body'), $('
')