mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 17:33:49 +01:00
improving active/inactive control for editAccountData, second tab
This commit is contained in:
parent
7816b06afd
commit
6c707b9e05
@ -381,12 +381,12 @@
|
||||
$folderList = array_merge( array('' => lang('default').' '.lang("folder settings")),(is_array($tomerge)?$tomerge:array()));
|
||||
|
||||
$this->t->set_var('allowAccounts',($preferences->userDefinedAccounts ? 1 : 0));
|
||||
$this->t->set_var('identity_selectbox', html::select('identity[signature]',$sigvalue,$allSignatures, true, "style='width: 250px;'"));
|
||||
$this->t->set_var('folder_selectbox', html::select('ic[folderstoshowinhome]',$icServer->folderstoshowinhome,$folderList, true, "style='width: 250px;'",6));
|
||||
$this->t->set_var('trash_selectbox', html::select('ic[trashfolder]',$icServer->trashfolder,$trashOptions, true, "style='width: 250px;'"));
|
||||
$this->t->set_var('sent_selectbox', html::select('ic[sentfolder]',$icServer->sentfolder,$sentOptions, true, "style='width: 250px;'"));
|
||||
$this->t->set_var('draft_selectbox', html::select('ic[draftfolder]',$icServer->draftfolder,$draftOptions, true, "style='width: 250px;'"));
|
||||
$this->t->set_var('template_selectbox', html::select('ic[templatefolder]',$icServer->templatefolder,$templateOptions, true, "style='width: 250px;'"));
|
||||
$this->t->set_var('identity_selectbox', html::select('identity[signature]',$sigvalue,$allSignatures, true, " id=\"identity[signature]\" style='width: 250px;'"));
|
||||
$this->t->set_var('folder_selectbox', html::select('ic[folderstoshowinhome]',$icServer->folderstoshowinhome,$folderList, true, "id=\"ic[folderstoshowinhome]\" style='width: 250px;'",6));
|
||||
$this->t->set_var('trash_selectbox', html::select('ic[trashfolder]',$icServer->trashfolder,$trashOptions, true, "id=\"ic[trashfolder]\" style='width: 250px;'"));
|
||||
$this->t->set_var('sent_selectbox', html::select('ic[sentfolder]',$icServer->sentfolder,$sentOptions, true, "id=\"ic[sentfolder]\" style='width: 250px;'"));
|
||||
$this->t->set_var('draft_selectbox', html::select('ic[draftfolder]',$icServer->draftfolder,$draftOptions, true, "id=\"ic[draftfolder]\" style='width: 250px;'"));
|
||||
$this->t->set_var('template_selectbox', html::select('ic[templatefolder]',$icServer->templatefolder,$templateOptions, true, "id=\"ic[templatefolder]\" style='width: 250px;'"));
|
||||
$linkData = array
|
||||
(
|
||||
'menuaction' => 'felamimail.uipreferences.editAccountData'
|
||||
|
@ -24,6 +24,11 @@ function onchange_active(_checkbox)
|
||||
for(i=0; i<outgoingInputs.length; i++) {
|
||||
outgoingInputs[i].disabled = false;
|
||||
}
|
||||
document.getElementById('ic[folderstoshowinhome]').disabled =false;
|
||||
document.getElementById('ic[trashfolder]').disabled =false;
|
||||
document.getElementById('ic[sentfolder]').disabled =false;
|
||||
document.getElementById('ic[draftfolder]').disabled =false;
|
||||
document.getElementById('ic[templatefolder]').disabled =false;
|
||||
} else {
|
||||
for(i=0; i<incomingInputs.length; i++) {
|
||||
incomingInputs[i].disabled = true;
|
||||
@ -31,6 +36,11 @@ function onchange_active(_checkbox)
|
||||
for(i=0; i<outgoingInputs.length; i++) {
|
||||
outgoingInputs[i].disabled = true;
|
||||
}
|
||||
document.getElementById('ic[folderstoshowinhome]').disabled =true;
|
||||
document.getElementById('ic[trashfolder]').disabled =true;
|
||||
document.getElementById('ic[sentfolder]').disabled =true;
|
||||
document.getElementById('ic[draftfolder]').disabled =true;
|
||||
document.getElementById('ic[templatefolder]').disabled =true;
|
||||
}
|
||||
|
||||
onchange_og_smtpauth(document.getElementById('og[smtpauth]'));
|
||||
@ -43,6 +53,11 @@ function onchange_active(_checkbox)
|
||||
for(i=0; i<outgoingInputs.length; i++) {
|
||||
outgoingInputs[i].disabled = true;
|
||||
}
|
||||
document.getElementById('ic[folderstoshowinhome]').disabled =true;
|
||||
document.getElementById('ic[trashfolder]').disabled =true;
|
||||
document.getElementById('ic[sentfolder]').disabled =true;
|
||||
document.getElementById('ic[draftfolder]').disabled =true;
|
||||
document.getElementById('ic[templatefolder]').disabled =true;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user