mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-25 06:31:59 +01:00
allow to use "about:*" or urls starting with / in set_value
This commit is contained in:
parent
00cc28506c
commit
3124a8c3f3
@ -89,7 +89,7 @@ var et2_iframe = et2_valueWidget.extend(
|
|||||||
set_value: function(_value) {
|
set_value: function(_value) {
|
||||||
if(typeof _value == "undefined") _value = "";
|
if(typeof _value == "undefined") _value = "";
|
||||||
|
|
||||||
if(_value.trim().indexOf("http") == 0)
|
if(_value.trim().indexOf("http") == 0 || _value.indexOf('about:') == 0 || _value[0] == '/')
|
||||||
{
|
{
|
||||||
// Value is a URL
|
// Value is a URL
|
||||||
this.set_src(_value);
|
this.set_src(_value);
|
||||||
|
Loading…
Reference in New Issue
Block a user