Skip to content

Commit

Permalink
Add: not iframe openPopUp colorbox
Browse files Browse the repository at this point in the history
  • Loading branch information
idoalit committed Jun 23, 2016
1 parent b902c31 commit 7f06a17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/gui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit 7f06a17

Please sign in to comment.