FIX attempt to access https iframe from http interface

This commit is contained in:
Mike Cochrane 2016-03-09 21:36:39 +13:00
parent a3ee9ece90
commit 0b81bbef22

View File

@ -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');