1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-20 10:50:08 +03:00

Fix disk and nic close button in template wizard

This commit is contained in:
Carlos Martín 2014-04-24 12:34:56 +02:00
parent 0d241061cc
commit fd4d7f04f8

View File

@ -2849,7 +2849,7 @@ function setup_storage_tab_content(storage_section) {
var number_of_disks = 0;
// close icon: removing the tab on click
$( "#storageTab i.remove-tab" ).live( "click", function() {
$(storage_section).on("click", "i.remove-tab", function() {
var target = $(this).parent().attr("href");
var dd = $(this).closest('dd');
var dl = $(this).closest('dl');
@ -2898,7 +2898,7 @@ function setup_network_tab_content(network_section) {
var number_of_nics = 0;
// close icon: removing the tab on click
$( "#networkTab i.remove-tab" ).live( "click", function() {
$(network_section).on("click", "i.remove-tab", function() {
var target = $(this).parent().attr("href");
var dd = $(this).closest('dd');
var dl = $(this).closest('dl');