Skip to content

Instantly share code, notes, and snippets.

@gsgoraya
Created October 17, 2020 05:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gsgoraya/ccb217bef1dabd864345263d4f3c113d to your computer and use it in GitHub Desktop.
Save gsgoraya/ccb217bef1dabd864345263d4f3c113d to your computer and use it in GitHub Desktop.
(($) => {
$('.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