Created
October 17, 2020 05:15
-
-
Save gsgoraya/ccb217bef1dabd864345263d4f3c113d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(($) => { | |
$('.oxy-dynamic-list').on('click', '.oxy-repeater-pages-wrap a', (e) => { | |
e.preventDefault(); | |
let list = $(e.target).closest('.oxy-dynamic-list'); | |
$.get(e.target.getAttribute('href'), (data) => { | |
let container = $('<div>'); | |
container.html(data); | |
let list2 = container.find('#'+list.attr('id')); | |
list.html(list2.html()); | |
}); | |
}); | |
})(jQuery) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment