also pass data to click events in submenus
This commit is contained in:
parent
639847da07
commit
7382d9fbb9
1 changed files with 4 additions and 1 deletions
|
@ -132,7 +132,10 @@ Ox.Menu = function(options, self) {
|
|||
that.hideMenu();
|
||||
if (!item.options('items').length) {
|
||||
if (self.options.parent) {
|
||||
self.options.parent.hideMenu(true).triggerEvent('click');
|
||||
self.options.parent.hideMenu(true).triggerEvent('click', Ox.extend({
|
||||
id: item.options('id'),
|
||||
title: Ox.stripTags(item.options('title')[0])
|
||||
}, files ? {files: files} : {}));
|
||||
}
|
||||
if (item.options('checked') !== null) {
|
||||
if (group) {
|
||||
|
|
Loading…
Reference in a new issue