Merge pull request #16001 from owncloud/add-multiselect-new-title

also add title to multiselect create new element, force multiselect wider width, fix #15954
This commit is contained in:
Morris Jobke 2015-05-02 21:46:28 +02:00
commit 182304591d
2 changed files with 3 additions and 2 deletions

View file

@ -51,7 +51,7 @@ ul.multiselectoptions > li input[type='checkbox']:checked+label {
div.multiselect, select.multiselect {
display: inline-block;
max-width: 200px;
min-width: 150px;
min-width: 150px !important;
padding-right: 10px;
min-height: 20px;
position: relative;

View file

@ -191,7 +191,8 @@
});
button.parent().data('preventHide',false);
if(settings.createText){
var li=$('<li class="creator">+ '+settings.createText+'</li>');
var li=$('<li class="creator" title="' + settings.createText +
'">+ ' + settings.createText + '</li>');
li.click(function(event){
li.empty();
var input=$('<input type="text" class="new">');