Merge pull request #15947 from owncloud/add-title-to-multiselect

add title to multiselect list items so longer group names are visible
This commit is contained in:
Morris Jobke 2015-04-30 10:04:43 +02:00
commit 8bc9c56dcf
1 changed files with 6 additions and 5 deletions

View File

@ -76,7 +76,7 @@
var self = this;
self.menuDirection = 'down';
button.click(function(event){
var button=$(this);
if(button.parent().children('ul').length>0) {
if(self.menuDirection === 'down') {
@ -113,8 +113,9 @@
input.attr('name', 'ms'+multiSelectId+'-option');
}
var label=$('<label/>');
label.attr('for',id);
label.attr('for', id);
label.text(element.text() || item);
label.attr('title', element.text() || item);
if(settings.checked.indexOf(item) !== -1 || checked) {
input.attr('checked', true);
}
@ -258,7 +259,7 @@
});
list.append(li);
}
var doSort = function(list, selector) {
var rows = list.find('li'+selector).get();
@ -299,7 +300,7 @@
top:pos.top - list.height(),
left:pos.left,
width:(button.outerWidth()-2)+'px'
});
list.detach().insertBefore($(this));
list.addClass('up');
@ -327,7 +328,7 @@
}
}
});
return span;
};
})( jQuery );