title: Fancybox not working (opens in new tab)
body: <pre><code>&lt;script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"&gt;&lt;/script&gt;
  &lt;script   src="https://code.jquery.com/ui/1.12.0/jquery-ui.min.js"   integrity="sha256-eGE6blurk5sHj+rmkfsGYeKyZx3M4bG+ZlFyA7Kns7E="   crossorigin="anonymous"&gt;&lt;/script&gt;
  &lt;link rel="stylesheet" href="/fajlovi/style/default/jquery.fancybox.css" type="text/css" media="screen" /&gt;
  &lt;script type="text/javascript" src="/fajlovi/misc/jquery.fancybox.pack.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="/fajlovi/misc/custom.js"&gt;&lt;/script&gt;
  &lt;script src="/fajlovi/misc/jquery.notify.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
      jQuery(document).ready(function() {
          jQuery(".fancybox").fancybox();
      });
  &lt;/script&gt;
  
  &lt;a class="fancybox" href="/ajax/user/pmform/2"&gt;&lt;img alt="ico" src="/fajlovi/images/ico/16x16/email.png" class="ico"&gt;Send a message&lt;/a&gt;
  </code></pre>
  
  <p>When I click on 'a <code>href</code>' element, instead of opening it in popup with <code>fancybox</code>, it opens in a new tab. And yes, it has the <code>class="fancybox"</code> included. No errors in console. How can I fix this?</p>