forked from 0x2620/oxjs
minor changes
This commit is contained in:
parent
7c62771252
commit
9dbedf13f9
1 changed files with 6 additions and 6 deletions
|
|
@ -26,6 +26,7 @@ Ox.MenuItem = function(options, self) {
|
||||||
bind: [], // fixme: what's this?
|
bind: [], // fixme: what's this?
|
||||||
checked: null,
|
checked: null,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
|
file: null,
|
||||||
group: '',
|
group: '',
|
||||||
icon: '',
|
icon: '',
|
||||||
id: '',
|
id: '',
|
||||||
|
|
@ -90,18 +91,17 @@ Ox.MenuItem = function(options, self) {
|
||||||
.html(
|
.html(
|
||||||
self.options.file
|
self.options.file
|
||||||
?
|
?
|
||||||
that.$button = Ox.FileButton(Ox.extend(Ox.clone(self.options.file), {
|
that.$button = Ox.FileButton(Ox.extend({
|
||||||
title: self.options.title[0],
|
title: self.options.title[0]
|
||||||
width: self.options.file.width
|
}, self.options.file)).bindEvent({
|
||||||
})).bindEvent({
|
|
||||||
click: function(data) {
|
click: function(data) {
|
||||||
self.options.menu.clickItem(self.options.position, data.files);
|
self.options.menu.clickItem(self.options.position, data.files);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
: (
|
: (
|
||||||
Ox.isString(self.options.title[0])
|
Ox.isString(self.options.title[0])
|
||||||
? self.options.title[0]
|
? self.options.title[0]
|
||||||
: $('<div>').html(self.options.title[0]).html()
|
: $('<div>').html(self.options.title[0]).html()
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue