Commit dc9eb9bf authored by Thomas Fradet's avatar Thomas Fradet

add event on btn for iframe src

parent 90092f23
;(function () {
var btns = document.querySelectorAll('.iena-filter-modal-btn');
for (var i = 0; i < btns.length; i++) {
document.querySelector(btns[i].dataset.target + " iframe").setAttribute('src', btns[i].dataset.iframe);
btns[i].onclick = function (e) {
document.querySelector(e.target.dataset.target + " iframe").setAttribute('src', e.target.dataset.iframe);
}
}
})()
// ;(function ($) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment