Style custom tag input

Add description to abr
This commit is contained in:
Ruud
2014-01-12 17:10:30 +01:00
parent a95320e162
commit 2fad29df51
2 changed files with 12 additions and 8 deletions
+5 -1
View File
@@ -1287,6 +1287,7 @@ Option.Combined = new Class({
self.inputs = {};
self.items = [];
self.labels = {};
self.descriptions = {};
self.options.combine.each(function(name){
@@ -1307,9 +1308,12 @@ Option.Combined = new Class({
Object.each(self.inputs, function(input, name){
self.labels[name] = input.getPrevious().get('text');
self.descriptions[name] = (_in = input.getNext()) ? _in.get('text') : '';
new Element('abbr', {
'class': name,
'text': self.labels[name]
'text': self.labels[name],
'title': self.descriptions[name]
}).inject(head)
});