Quite a long time using this plugin. But first had to deal with this problem.
I tried to Google, found a solution but something goes wrong.
In General, the problem is this: I have a popup in which there are pictures. Click on the pictures they should open in magnific popup. I googled there write that is necessary as-that via ajax but in js knowledge is weak.
Here is a link to jsfiddleThe documentation of magnific popup