diff --git a/src/sunstone/public/app/sunstone.js b/src/sunstone/public/app/sunstone.js index 7e9ef24866..b99b310e86 100644 --- a/src/sunstone/public/app/sunstone.js +++ b/src/sunstone/public/app/sunstone.js @@ -426,7 +426,7 @@ define(function(require) { if ($("#" + customId + "labels_buttons button", buttonsRow).length != 0) { $('#' + customId + 'labels_buttons').append( - '
').foundation(); + '').foundation(); } //actionBlock.foundationButtons(); diff --git a/src/sunstone/public/app/tabs/provision-tab.js b/src/sunstone/public/app/tabs/provision-tab.js index 692303618e..9c81f1b74f 100644 --- a/src/sunstone/public/app/tabs/provision-tab.js +++ b/src/sunstone/public/app/tabs/provision-tab.js @@ -616,17 +616,18 @@ define(function(require) { ''); } else { datatable.fnAddData(item_list); - - LabelsUtils.clearLabelsFilter(datatable, FLOW_TEMPLATE_LABELS_COLUMN); - var context = $('.labels-dropdown', datatable.closest('#provisionFlowInstantiateTemplatesRow')); - LabelsUtils.insertLabelsMenu({ - 'context': context, - 'dataTable': datatable, - 'labelsColumn': FLOW_TEMPLATE_LABELS_COLUMN, - 'labelsPath': 'DOCUMENT.TEMPLATE.LABELS', - 'placeholder': Locale.tr("No labels defined") - }); } + + LabelsUtils.clearLabelsFilter(datatable, FLOW_TEMPLATE_LABELS_COLUMN); + var context = $('.labels-dropdown', datatable.closest('#provisionFlowInstantiateTemplatesRow')); + context.html(""); + LabelsUtils.insertLabelsMenu({ + 'context': context, + 'dataTable': datatable, + 'labelsColumn': FLOW_TEMPLATE_LABELS_COLUMN, + 'labelsPath': 'DOCUMENT.TEMPLATE.LABELS', + 'placeholder': Locale.tr("No labels defined") + }); }, error: Notifier.onError }); diff --git a/src/sunstone/public/app/tabs/provision-tab/flows/create.hbs b/src/sunstone/public/app/tabs/provision-tab/flows/create.hbs index 273178562b..d095d7b0e8 100644 --- a/src/sunstone/public/app/tabs/provision-tab/flows/create.hbs +++ b/src/sunstone/public/app/tabs/provision-tab/flows/create.hbs @@ -55,10 +55,10 @@