title: Magnific Popup ajax url in callback
body: <p>I'm using Magnific Popup to confirm an action, loading the content of the popup through ajax and is working correctly.</p>
  
  <pre><code>&lt;a class="dialog" href="/ajax/dialogs/dialog-delete.php"&gt;Delete&lt;/a&gt;
  
  $('.dialog').magnificPopup({ 
      type: 'ajax',
      callbacks: { 
          updateStatus: function(data) {
              if (data.status === 'ready') {
                  $('.dialog_delete').on("click", function() { delete_item(object); $.magnificPopup.close(); });  
              }
          }
      }
  });
  </code></pre>
  
  <p>The only problem is that I think is not very nice to show the url <code>'/ajax/dialogs/dialog-delete.php'</code>, when the cursor is over the link.</p>
  
  <p>For this reason I was trying to find an alternative way to do this, but I don't know how. In the documentation of the plugin I couldn't find something useful.</p>
  
  <p>So, I'm a bit lost, my last trial was something like this, but it's not working and returns this error in the console <code>b.find is not a function</code>.</p>
  
  <pre><code>$('.dialog').magnificPopup({ 
      callbacks : {
          open : function(){
             $.ajax({
                type: "POST",
                url: "/ajax/dialogs/dialog-delete.php",
                success: function(html) {
                   //???
                }  
             });
          }
        }
  });
  </code></pre>