From fd4d7f04f8a14aa94f95273daf431a55e9135d63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Thu, 24 Apr 2014 12:34:56 +0200 Subject: [PATCH] Fix disk and nic close button in template wizard --- src/sunstone/public/js/plugins/templates-tab.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sunstone/public/js/plugins/templates-tab.js b/src/sunstone/public/js/plugins/templates-tab.js index 27533e8c39..e4ee67d112 100644 --- a/src/sunstone/public/js/plugins/templates-tab.js +++ b/src/sunstone/public/js/plugins/templates-tab.js @@ -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');