mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +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
|
// This opens (.open(..)) the selected item and if none are selected
|
||||||
// selects the default (.select()) and exits.
|
// selects the default (.select()) and exits.
|
||||||
|
//
|
||||||
|
// NOTE: this ignores items with empty text...
|
||||||
|
// XXX not sure about this...
|
||||||
action: function(){
|
action: function(){
|
||||||
var elem = this.select('!')
|
var elem = this.select('!')
|
||||||
|
|
||||||
@ -3219,9 +3222,14 @@ var BrowserPrototype = {
|
|||||||
|
|
||||||
var path = this.path
|
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
|
return res
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user