From 3124a8c3f30a35ce916f05e66202e0a220a7f4e8 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 17 Oct 2013 13:14:22 +0000 Subject: [PATCH] allow to use "about:*" or urls starting with / in set_value --- etemplate/js/et2_widget_iframe.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_iframe.js b/etemplate/js/et2_widget_iframe.js index 45e5689fc7..bf5efcc355 100644 --- a/etemplate/js/et2_widget_iframe.js +++ b/etemplate/js/et2_widget_iframe.js @@ -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);