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 { div.multiselect, select.multiselect {
display: inline-block; display: inline-block;
max-width: 200px; max-width: 200px;
min-width: 150px; min-width: 150px !important;
padding-right: 10px; padding-right: 10px;
min-height: 20px; min-height: 20px;
position: relative; position: relative;

View File

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