forked from 0x2620/oxjs
some fixed for text lists with column titles that are images
This commit is contained in:
parent
72676ed2bb
commit
0840d0b436
3 changed files with 23 additions and 16 deletions
|
|
@ -134,7 +134,8 @@ Ox.Menu = function(options, self) {
|
|||
checked: self.optionGroups[item.options('group')].checked().map(function(v) {
|
||||
return {
|
||||
id: that.items[v].options('id'),
|
||||
title: Ox.stripTags(that.items[v].options('title')[0])
|
||||
title: Ox.isString(that.items[v].options('title')[0])
|
||||
? Ox.stripTags(that.items[v].options('title')[0]) : ''
|
||||
};
|
||||
})
|
||||
});
|
||||
|
|
@ -144,7 +145,8 @@ Ox.Menu = function(options, self) {
|
|||
menu.triggerEvent('change', {
|
||||
checked: item.options('checked'),
|
||||
id: item.options('id'),
|
||||
title: Ox.stripTags(item.options('title')[0])
|
||||
title: Ox.isString(item.options('title')[0])
|
||||
? Ox.stripTags(item.options('title')[0]) : ''
|
||||
});
|
||||
}
|
||||
} else {
|
||||
|
|
@ -423,7 +425,8 @@ Ox.Menu = function(options, self) {
|
|||
///* disabled
|
||||
that.triggerEvent('select', {
|
||||
id: item.options('id'),
|
||||
title: Ox.stripTags(item.options('title')[0])
|
||||
title: Ox.isString(item.options('title')[0])
|
||||
? Ox.stripTags(item.options('title')[0]) : ''
|
||||
});
|
||||
//*/
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue