Fix select file via MenuItem in Firefox
instead of an inline FileButton, just use an unattached input element to trigger the select file dialog.
This commit is contained in:
parent
c4413d9fd7
commit
03c2f9f3a1
2 changed files with 32 additions and 26 deletions
|
|
@ -463,10 +463,6 @@ Ox.Menu = function(options, self) {
|
|||
item = that.items[self.options.selected];
|
||||
if (item) {
|
||||
item.removeClass('OxSelected');
|
||||
if (item.options('file')) {
|
||||
item.$button.blurButton();
|
||||
that.bindEvent({key_enter: clickSelectedItem})
|
||||
}
|
||||
}
|
||||
/* disabled
|
||||
that.triggerEvent('deselect', {
|
||||
|
|
@ -485,10 +481,6 @@ Ox.Menu = function(options, self) {
|
|||
});
|
||||
item.options('items').length && that.submenus[item.options('id')].showMenu();
|
||||
item.addClass('OxSelected');
|
||||
if (item.options('file')) {
|
||||
item.$button.focusButton();
|
||||
that.unbindEvent('key_enter');
|
||||
}
|
||||
that.triggerEvent('select', {
|
||||
id: item.options('id'),
|
||||
title: Ox.isString(item.options('title')[0])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue