From a09ab65973e2f27ef1753e5e01e18f157d1cef1a Mon Sep 17 00:00:00 2001 From: nathangray Date: Thu, 5 Oct 2017 11:17:42 -0600 Subject: [PATCH] Fix bug preventing etemplates in iframes from being unloaded --- api/js/framework/fw_browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/framework/fw_browser.js b/api/js/framework/fw_browser.js index c7a4f34aea..a9dcec4d3b 100644 --- a/api/js/framework/fw_browser.js +++ b/api/js/framework/fw_browser.js @@ -215,7 +215,7 @@ var fw_browser = (function(){ "use strict"; return Class.extend( { // Clear all etemplates on this tab, regardless of application, by using DOM nodes var content = this.iframe.contentWindow; - jQuery('.et2_container',this.iframe.contentWindow).each(function() { + jQuery('.et2_container',this.iframe.contentDocument).each(function() { var et = content.etemplate2.getById(this.id); if(et !== null) {