allow to use "about:*" or urls starting with / in set_value

This commit is contained in:
Ralf Becker 2013-10-17 13:14:22 +00:00
parent 00cc28506c
commit 3124a8c3f3

View File

@ -89,7 +89,7 @@ var et2_iframe = et2_valueWidget.extend(
set_value: function(_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
this.set_src(_value);