* fix contactlist control in form not work.
This commit is contained in:
@@ -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
@@ -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
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user