FIX: apply click listeners in em_event_unit_templates.js after loading template list instead of before
This commit is contained in:
parent
b88763c4be
commit
da4f536e90
|
@ -38,11 +38,6 @@ EventUnitTemplatesModule = ( function() {
|
||||||
$(".eu_templates_checkbox").prop("checked", !all_checked);
|
$(".eu_templates_checkbox").prop("checked", !all_checked);
|
||||||
all_checked = !all_checked
|
all_checked = !all_checked
|
||||||
});
|
});
|
||||||
$(".template_list_nav_next").on("click", pagination_forward);
|
|
||||||
$(".template_list_nav_back").on("click", pagination_backward);
|
|
||||||
$(".template_list_nav_numbers").on("click", pagination_numbers);
|
|
||||||
$(".templates_delete_button").on("click", delete_templates);
|
|
||||||
$(".template_new_submit").on("click", create_template);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
let load_eu_template_list = function(){
|
let load_eu_template_list = function(){
|
||||||
|
@ -59,6 +54,11 @@ EventUnitTemplatesModule = ( function() {
|
||||||
$(eu_templates).each(function(){
|
$(eu_templates).each(function(){
|
||||||
$("#template_list_tbody").append(templates.template_row(this));
|
$("#template_list_tbody").append(templates.template_row(this));
|
||||||
});
|
});
|
||||||
|
$(".template_list_nav_next").on("click", pagination_forward);
|
||||||
|
$(".template_list_nav_back").on("click", pagination_backward);
|
||||||
|
$(".template_list_nav_numbers").on("click", pagination_numbers);
|
||||||
|
$(".templates_delete_button").on("click", delete_templates);
|
||||||
|
$(".template_new_submit").on("click", create_template);
|
||||||
pagination_update();
|
pagination_update();
|
||||||
$(".eu_template_tr").off("click").on("click", load_detailed_template);
|
$(".eu_template_tr").off("click").on("click", load_detailed_template);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
v0.1-71-gdc7de23
|
v0.1-76-gb88763c
|
||||||
|
|
Loading…
Reference in New Issue