minor reformatting

This commit is contained in:
rolux 2012-06-23 01:55:42 +02:00
parent ee1d50283f
commit 0fced02dda

View file

@ -145,7 +145,7 @@ Ox.load('UI', function() {
if (!self.text) {
Ox.get('html/about.html', function(data) {
self.text = data;
self.$text.html(data/*data.split('</p>')[0]*/);
self.$text.html(data);
self.$dialog.open();
});
} else {
@ -218,27 +218,21 @@ Ox.load('UI', function() {
}
}, function(keys, section) {
self.$controlsPanel.append(
$('<div>')
.addClass('textTitle')
.html(section)
$('<div>').addClass('textTitle').html(section)
);
Ox.forEach(keys, function(value, key) {
self.$controlsPanel
.append(
$('<div>')
.addClass('textKey')
.html(
key.split(' ').map(function(key) {
return key.split('+').map(function(key) {
return Ox.UI.symbols[key] || key;
}).join('')
}).join(' ')
)
$('<div>').addClass('textKey').html(
key.split(' ').map(function(key) {
return key.split('+').map(function(key) {
return Ox.UI.symbols[key] || key;
}).join('')
}).join(' ')
)
)
.append(
$('<div>')
.addClass('textValue')
.html(value)
$('<div>').addClass('textValue').html(value)
);
});
});