title: popup login page reload
body: <p>i use fancybox for popup the login page </p>
  
  <pre><code>jQuery(function () {
      jQuery(".spop").fancybox({
          'transitionIn': 'elastic',
          'transitionOut': 'elastic',
          'speedIn': 400,
          'speedOut': 200,
          'width': 320,
          'height': 315,
          'padding': 0,
          'margin': 0,
          'titleShow': false,
          'scrolling': 'no',
          'type': 'iframe',
          'overlayShow': true,
          'onClosed': function () {
              parent.location.reload(true);
          }
      });
  </code></pre>
  
  <hr>
  
  <p>as you see i use event 'onClosed': function () { parent.location.reload(true);</p>
  
  <p>but i need to do this event but under some condition</p>
  
  <p>if the user click close i need  fancebox don't reload you can find this issues in this link 
  <a href="http://www.aqar4me.com/rent.aspx" rel="nofollow noreferrer">http://www.aqar4me.com/rent.aspx</a></p>
  
  <hr>
  
  <p><img src="https://i.stack.imgur.com/2VV72.png" alt="enter image description here"></p>