Setting labels

This commit is contained in:
Ruud
2011-09-26 22:39:07 +02:00
parent 52c086fe1b
commit c9a5752be2
+1 -1
View File
@@ -238,7 +238,7 @@ var OptionBase = new Class({
createLabel: function(){
var self = this;
return new Element('label', {
'text': (self.options.label || self.options.name).capitalize()
'text': (self.options.label || self.options.name.replace('_', ' ')).capitalize()
})
},