also pass data to click events in submenus

This commit is contained in:
j 2012-06-06 21:39:43 +02:00
parent 639847da07
commit 7382d9fbb9

View file

@ -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) {