mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-06-14 12:06:06 +00:00
Replace direct 'click' event binding with delegated binding. Fixes #58.
Direct binding only works for elements already in the DOM, delegated binding works for all elements that match a filter even if created after the DOM is fully loaded.
This commit is contained in:
@ -223,14 +223,13 @@
|
||||
"info" : false,
|
||||
"autoWidth" : false
|
||||
});
|
||||
|
||||
$(".history-info-button").click(function() {
|
||||
$(document.body).on('click', '.history-info-button', function() {
|
||||
var modal = $("#modal_history_info");
|
||||
var info = $(this).val();
|
||||
modal.find('.modal-body p').text(info);
|
||||
modal.modal('show');
|
||||
});
|
||||
$(document).on("click", ".button_dnssec", function() {
|
||||
$(document.body).on("click", ".button_dnssec", function() {
|
||||
var domain = $(this).prop('id');
|
||||
getdnssec('/domain/' + domain + '/dnssec');
|
||||
});
|
||||
|
Reference in New Issue
Block a user