mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 15:33:23 +01:00
fix not working trailingSlash validation since dropping of Lion framework
This commit is contained in:
parent
0b08b33a8e
commit
63e566ad6c
@ -80,16 +80,16 @@ export class Et2Url extends Et2InvokerMixin(Et2Textbox)
|
||||
*/
|
||||
_oldChange(_ev: Event): boolean
|
||||
{
|
||||
const value = this.modelValue;
|
||||
const value = this.value;
|
||||
if (typeof this.trailingSlash !== 'undefined' && value && this.trailingSlash !== (value.substr(-1)==='/'))
|
||||
{
|
||||
if (!this.trailingSlash)
|
||||
{
|
||||
this.modelValue = value.replace(/\/+$/, '');
|
||||
this.value = value.replace(/\/+$/, '');
|
||||
}
|
||||
else
|
||||
{
|
||||
this.modelValue += '/';
|
||||
this.value += '/';
|
||||
}
|
||||
}
|
||||
return super._oldChange(_ev);
|
||||
|
Loading…
Reference in New Issue
Block a user