mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
a fix, not sure I like this yet...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
24f886004d
commit
6ec6bc7e3c
@ -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
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user