dynamic enable password suggest for sharing links

This commit is contained in:
Ralf Becker 2020-07-30 21:56:57 +02:00
parent 88b7bccdb9
commit a562cdf502

View File

@ -5118,6 +5118,7 @@ app.classes.mail = AppJS.extend(
var extended_settings = _widget.get_value() != 'attach' && this.egw.app('stylite');
this.et2.getWidgetById('expiration').set_readonly(!extended_settings);
this.et2.getWidgetById('password').set_readonly(!extended_settings);
this.et2.getWidgetById('password').set_suggest(!extended_settings ? 0 : 8);
if (_widget.get_value() == 'share_rw' && !this.egw.app('stylite'))
{