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