forked from 0x2620/oxjs
Ox.UI.symbols -> Ox.SYMBOLS
This commit is contained in:
parent
4a55b106de
commit
0119a2d466
3 changed files with 22 additions and 22 deletions
|
|
@ -45,7 +45,7 @@ Ox.MenuItem = function(options, self) {
|
|||
}))
|
||||
.update({
|
||||
checked: function() {
|
||||
that.$status.html(self.options.checked ? Ox.UI.symbols.check : '')
|
||||
that.$status.html(self.options.checked ? Ox.SYMBOLS.check : '')
|
||||
},
|
||||
disabled: function() {
|
||||
that[
|
||||
|
|
@ -80,7 +80,7 @@ Ox.MenuItem = function(options, self) {
|
|||
that.append(
|
||||
that.$status = Ox.$('<td>')
|
||||
.addClass('OxCell OxStatus')
|
||||
.html(self.options.checked ? Ox.UI.symbols.check : '')
|
||||
.html(self.options.checked ? Ox.SYMBOLS.check : '')
|
||||
)
|
||||
.append(
|
||||
that.$icon = $('<td>')
|
||||
|
|
@ -132,19 +132,19 @@ Ox.MenuItem = function(options, self) {
|
|||
)
|
||||
.html(
|
||||
self.options.items.length
|
||||
? Ox.UI.symbols.triangle_right
|
||||
? Ox.SYMBOLS.triangle_right
|
||||
: formatKey()
|
||||
)
|
||||
);
|
||||
|
||||
function formatKey() {
|
||||
return Ox.UI.symbols[self.options.keyboard.key]
|
||||
return Ox.SYMBOLS[self.options.keyboard.key]
|
||||
|| self.options.keyboard.key.toUpperCase();
|
||||
}
|
||||
|
||||
function formatModifiers() {
|
||||
return self.options.keyboard.modifiers.map(function(modifier) {
|
||||
return Ox.UI.symbols[modifier];
|
||||
return Ox.SYMBOLS[modifier];
|
||||
}).join('');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue