mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 20:02:38 +09:00
Feature #2746: Fix host/cluster remove button in placement section of the template wizard
This commit is contained in:
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");
|
||||
|
||||
|
||||
Reference in new issue
Block a user