Merge branch 'staging' into communities-oo

pull/1/head
yflory 5 years ago
commit bc8fee8a29

@ -1307,7 +1307,6 @@ define([
onFriendShare.reg(saveValue); onFriendShare.reg(saveValue);
// XXX Don't display access rights if no contacts
var contactsContent = h('div.cp-share-modal'); var contactsContent = h('div.cp-share-modal');
var $contactsContent = $(contactsContent); var $contactsContent = $(contactsContent);
@ -2973,6 +2972,9 @@ define([
var to; var to;
$container.on('click', 'a', function () { $container.on('click', 'a', function () {
value = $(this).data('value'); value = $(this).data('value');
var $val = $(this);
var textValue = $val.html() || value;
$button.find('.cp-dropdown-button-title').html(textValue);
}); });
$container.keydown(function (e) { $container.keydown(function (e) {
var $value = $innerblock.find('[data-value].cp-dropdown-element-active:visible'); var $value = $innerblock.find('[data-value].cp-dropdown-element-active:visible');

Loading…
Cancel
Save