forked from extern/egroupware
* EMailAdmin/Mail: folders on personal accounts where not stored, automatic unsetting "use default" when changing/adding folders
This commit is contained in:
parent
2b1a3f7a6c
commit
d860dd5ecd
@ -930,6 +930,7 @@ class emailadmin_wizard
|
||||
unset($content['acc_imap_login_type']);
|
||||
$content['acc_smtp_type'] = 'emailadmin_smtp';
|
||||
unset($content['acc_smtp_auth_session']);
|
||||
unset($content['notify_use_default']);
|
||||
}
|
||||
$edit_access = emailadmin_account::check_access(EGW_ACL_EDIT, $content);
|
||||
|
||||
|
@ -240,6 +240,18 @@ app.classes.emailadmin = AppJS.extend(
|
||||
{
|
||||
// todo check dirty and query user to a) save changes, b) discard changes, c) cancel selection
|
||||
_widget.getInstanceManager().submit();
|
||||
},
|
||||
|
||||
/**
|
||||
* Callback if user changes notification folders: unset use-default checkbox
|
||||
*
|
||||
* @param {object} _event
|
||||
* @param {et2_widget} _widget
|
||||
*/
|
||||
change_folders: function(_event, _widget)
|
||||
{
|
||||
var use_default = this.et2.getWidgetById('notify_use_default');
|
||||
if (use_default) use_default.set_value(false);
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -147,7 +147,7 @@
|
||||
<row>
|
||||
<description for="acc_folder_junk" value="Notify about new mail in this folders"/>
|
||||
<vbox>
|
||||
<taglist id="notify_folders" empty_label="Select one ..." autocomplete_url=""/>
|
||||
<taglist id="notify_folders" empty_label="Select one ..." autocomplete_url="" onchange="app.emailadmin.change_folders"/>
|
||||
<checkbox id="notify_save_default" label="save as default"/>
|
||||
<checkbox id="notify_use_default" label="use default"/>
|
||||
</vbox>
|
||||
|
Loading…
Reference in New Issue
Block a user