Skip to content
Snippets Groups Projects
Commit 8bc9c56d authored by Morris Jobke's avatar Morris Jobke
Browse files

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

add title to multiselect list items so longer group names are visible
parents ae853445 3dfa05c0
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment