I came across this miracle in my hands. http://jsfiddle.net/82zah5pd/
It used to work. Then it stopped (apparently something was fixed).
The essence of the code is as follows. When you click on the button, the svg window opens
But it opens only if on page 1 a button opens this window and the window itself.
If there are two buttons and 2 windows too, nothing works.
Here is a readable view where there is 1 button - http://rghost.ru/8pDtBbknj
And here are 2 buttons - http://rghost.ru/7ksCcGDNs
The differences there are:
Created a copy of the dialogFx.js file (dialoggFx.js). It changed
this.ctrlClose = this.el.querySelector( '[data-dialog-close]' ); On
this.ctrlClose = this.el.querySelector( '[dato-dialog-close]' ); In the html file itself, the changes are visible (just all copied and changed the data to doto, somedialog to homedialog)
Generally quiet horror that still does not work.
Accordingly, the question is: How to make this code work (it is advisable, of course, not to use the * version of the ovoknod as in the example), but the main thing that would work
dato-dialog-closeis an attribute in html - check if he or he is theredoto-dialog-close- in any case it is better to returndata- as a standard prefix for user attributes - Grundy