Reduce roomID length, limit Pad Name to 39 characters
This commit is contained in:
parent
147a536402
commit
629cc43560
|
@ -3,6 +3,7 @@
|
|||
<label class="label-block">
|
||||
{{'Pad Name' | translate}}
|
||||
<input type="text" class="form-control"
|
||||
maxlength="39"
|
||||
placeholder="{{ defaultName }}"
|
||||
[(ngModel)]="widget.dimension.newName" name="widget-name-{{widget.id}}"
|
||||
[disabled]="isUpdating"/>
|
||||
|
|
|
@ -40,7 +40,7 @@ export class EtherpadWidgetConfigComponent extends WidgetComponent {
|
|||
template = this.etherpadWidget.options.defaultUrl;
|
||||
}
|
||||
|
||||
template = template.replace("$roomId", encodeURIComponent(SessionStorage.roomId));
|
||||
template = template.replace("$roomId", encodeURIComponent(SessionStorage.roomId).slice(0, 10));
|
||||
template = template.replace("$padName", encodeURIComponent(name));
|
||||
|
||||
widget.dimension.newUrl = template;
|
||||
|
|
Loading…
Reference in a new issue