Feature #2746: Fix host/cluster remove button in placement section of the template wizard

This commit is contained in:
Carlos Martín committed 2014-03-13 16:36:21 +01:00
1 parent 68b2209f19
commit 4f5fc5f8af
1 file changed
+4 -2
@@ -3215,7 +3215,8 @@ function add_schedulingTab(dialog) {
return true;
});
$("span.fa.fa-times", $('div#selected_hosts_template', dialog)).live( "click", function() {
$(document).off("click", 'div#selected_hosts_template span.fa.fa-times');
$(document).on("click", 'div#selected_hosts_template span.fa.fa-times', function() {
$(this).parent().remove();
var id = $(this).parent().attr("ID");
@@ -3299,7 +3300,8 @@ function add_schedulingTab(dialog) {
return true;
});
$( "#selected_clusters_template span.fa.fa-times" , dialog).live( "click", function() {
$(document).off("click", 'div#selected_clusters_template span.fa.fa-times');
$(document).on("click", 'div#selected_clusters_template span.fa.fa-times', function() {
$(this).parent().remove();
var id = $(this).parent().attr("ID");