From 0b81bbef22a0145e1972973761248070f0bd1c66 Mon Sep 17 00:00:00 2001 From: Mike Cochrane Date: Wed, 9 Mar 2016 21:36:39 +1300 Subject: [PATCH] FIX attempt to access https iframe from http interface --- admin/javascript/src/LeftAndMain.ActionTabSet.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/admin/javascript/src/LeftAndMain.ActionTabSet.js b/admin/javascript/src/LeftAndMain.ActionTabSet.js index 3e3aba05b..5be48b907 100644 --- a/admin/javascript/src/LeftAndMain.ActionTabSet.js +++ b/admin/javascript/src/LeftAndMain.ActionTabSet.js @@ -31,7 +31,9 @@ $.entwine('ss', function($) { // because the panel is still open when the ajax edit form reloads. var frame = $('.cms-container').find('iframe'); frame.each(function(index, iframe){ - $(iframe).contents().off('click.ss-ui-action-tabset'); + try { + $(iframe).contents().off('click.ss-ui-action-tabset'); + } catch (e) {} }); $(document).off('click.ss-ui-action-tabset');