From 7f06a17b917022630ab84031a3f15e711abf6dbe Mon Sep 17 00:00:00 2001 From: idoalit Date: Thu, 23 Jun 2016 11:12:29 +0700 Subject: [PATCH] Add: not iframe openPopUp colorbox --- js/gui.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/gui.js b/js/gui.js index 7c7a8867..ed58e934 100755 --- a/js/gui.js +++ b/js/gui.js @@ -425,7 +425,8 @@ $('document').ready(function() { $('body').on('click', 'a.openPopUp', function(evt) { evt.preventDefault(); var popUpButton = $(this); - top.jQuery.colorbox({iframe:true, + var inFrame = popUpButton.hasClass('notIframe') ? false : true; + top.jQuery.colorbox({iframe:inFrame, href: popUpButton.attr('href'), innerWidth: function() { var width = parseInt(popUpButton.attr('width'));