1
0
Fork 0
forked from 0x2620/oxjs

allow menu item to trigger native file dialog when pressing enter

This commit is contained in:
rlx 2012-03-24 11:04:27 +00:00
commit 826eb5548d
3 changed files with 22 additions and 7 deletions

View file

@ -80,7 +80,7 @@ Ox.MenuItem = function(options, self) {
.html(
self.options.file
?
Ox.FileButton(Ox.extend(Ox.clone(self.options.file), {
that.$button = Ox.FileButton(Ox.extend(Ox.clone(self.options.file), {
title: self.options.title[0],
width: self.options.file.width
})).bindEvent({