From 35d3c72b059fb933392d80f127fedbd51745d4ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Fri, 25 Apr 2014 16:58:23 +0200 Subject: [PATCH] Fix flow template creation wizard --- src/sunstone/public/js/plugins/oneflow-templates.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sunstone/public/js/plugins/oneflow-templates.js b/src/sunstone/public/js/plugins/oneflow-templates.js index 80e459277d..ada86019b5 100644 --- a/src/sunstone/public/js/plugins/oneflow-templates.js +++ b/src/sunstone/public/js/plugins/oneflow-templates.js @@ -1045,7 +1045,7 @@ function setupCreateServiceTemplateDialog(){ } // close icon: removing the tab on click - $( "#roles_tabs i.remove-tab" ).live( "click", function() { + $("#roles_tabs").on("click", "i.remove-tab", function() { var target = $(this).parent().attr("href"); var dd = $(this).closest('dd'); var dl = $(this).closest('dl'); @@ -1064,7 +1064,7 @@ function setupCreateServiceTemplateDialog(){ // Each time a tab is clicked the table is filled with existing tabs (roles) // Selected roles are kept // TODO If the name of a role is changed and is selected, selection will be lost - $("#roles_tabs a").live('click', function(){ + $("#roles_tabs").on("click", "a", function() { var tab_id = "#"+this.id+"Tab"; var str = "";