From 7382d9fbb9da9a9d0ba138062a03b6e556df7d9b Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 6 Jun 2012 21:39:43 +0200 Subject: [PATCH] also pass data to click events in submenus --- source/Ox.UI/js/Menu/Menu.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Menu/Menu.js b/source/Ox.UI/js/Menu/Menu.js index 250422ae..20848561 100644 --- a/source/Ox.UI/js/Menu/Menu.js +++ b/source/Ox.UI/js/Menu/Menu.js @@ -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) {