1
0
Fork 0
forked from 0x2620/oxjs

some fixed for text lists with column titles that are images

This commit is contained in:
rlx 2011-11-02 19:47:19 +00:00
commit 0840d0b436
3 changed files with 23 additions and 16 deletions

View file

@ -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]) : ''
});
//*/
}