a fix, not sure I like this yet...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-02-01 23:34:03 +03:00
parent 24f886004d
commit 6ec6bc7e3c

View File

@ -3208,6 +3208,9 @@ var BrowserPrototype = {
//
// This opens (.open(..)) the selected item and if none are selected
// selects the default (.select()) and exits.
//
// NOTE: this ignores items with empty text...
// XXX not sure about this...
action: function(){
var elem = this.select('!')
@ -3219,9 +3222,14 @@ var BrowserPrototype = {
var path = this.path
path.push(elem.find('.text').text())
var txt = elem.find('.text').text()
var res = this.open(path)
// if text is empty, skip action...
if(txt != ''){
path.push(elem.find('.text').text())
var res = this.open(path)
}
return res
},