},
openIframe: function (iframe, callback) {
+ var $this = this;
var a = $('a[href="#/iframe/' + iframe + '"]');
var markup = decodeURIComponent($(a).attr('data-iframe'));
var view = '<div class="caption">' + this.closeButton() + '</div>';
if (callback != undefined) {
callback();
}
+
+ var t = $("#view .iframeContainer").data('type');
+ $("#view").find('.iframeHolder,.content,.mview').attr('data-type', t);
+
+ $("#view .iframeContainer iframe").on('load', function () {
+ $this.resize();
+ });
},
openVideo: function (video, callback) {
fullscreen = true;
}
forceHeight = true;
+
+ var iframe = $("#view .iframeHolder iframe");
+ iframe.css('width', w);
+ if (!fullscreen) {
+ var ih = -1;
+ try {
+ ih = $(iframe).get(0).contentWindow.document.body.offsetHeight;
+ } catch (e) {
+ ih = -1;
+ }
+
+ if (ih > 0) {
+ h = Math.min(ih, h);
+ }
+ }
+
break;
case 'cart':
w = 1024;