* fix contactlist control in form not work.

This commit is contained in:
Catouse
2018-05-28 09:53:12 +08:00
parent 6548de69b1
commit a981ac8438
5 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -415,7 +415,7 @@ class my extends control
{
$listID = $this->user->createContactList($this->post->newList, $this->post->users);
$this->user->setGlobalContacts($listID, isset($_POST['share']));
if(isonlybody()) die(js::closeModal('parent.parent', '', 'function(){parent.parent.ajaxGetContacts(\'#mailtoGroup\')}'));
if(isonlybody()) die(js::closeModal('parent.parent', '', ' function(){parent.parent.ajaxGetContacts(\'#mailto\')}'));
die(js::locate(inlink('manageContacts', "listID=$listID"), 'parent'));
}
elseif($this->post->mode == 'edit')
@@ -19,6 +19,8 @@ else
{
echo '<span class="input-group-btn">';
echo '<a title="' . $lang->user->contacts->manage . '" href="' . $this->createLink('my', 'managecontacts', "listID=0&mode=new", '', true) . "\" target='_blank' data-icon='cog' data-title='{$lang->user->contacts->manage}' class='btn btn-icon iframe'><i class='icon icon-cog'></i></a>";
echo '</span>';
echo '<span class="input-group-btn">';
echo '<button type="button" title="' . $lang->refresh . '" class="btn btn-icon" onclick="ajaxGetContacts(this)"><i class="icon icon-refresh"></i></button>';
echo '</span>';
}
+1 -1
View File
@@ -504,7 +504,7 @@ function ajaxGetContacts(obj)
$inputgroup = $(obj).closest('.input-group');
$inputgroup.find('.input-group-btn').remove();
$inputgroup.append(contacts);
$inputgroup.find('select:last').chosen(defaultChosenOptions);
$inputgroup.find('select:last').chosen(defaultChosenOptions).fixInputGroup();
});
}
+2 -2
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long