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 @@
- - +
diff --git a/src/sunstone/public/app/tabs/provision-tab/templates/list.js b/src/sunstone/public/app/tabs/provision-tab/templates/list.js index b25a574e10..d1dcbb9b8f 100644 --- a/src/sunstone/public/app/tabs/provision-tab/templates/list.js +++ b/src/sunstone/public/app/tabs/provision-tab/templates/list.js @@ -100,18 +100,19 @@ define(function(require) { ''); } else { datatable.fnAddData(item_list); - - // Labels are inserted only in the new VM wizard - LabelsUtils.clearLabelsFilter(datatable, TEMPLATE_LABELS_COLUMN); - var context = $('.labels-dropdown', datatable.closest('#provisionVMInstantiateTemplatesRow')); - LabelsUtils.insertLabelsMenu({ - 'context': context, - 'dataTable': datatable, - 'labelsColumn': TEMPLATE_LABELS_COLUMN, - 'labelsPath': 'VMTEMPLATE.TEMPLATE.LABELS', - 'placeholder': Locale.tr("No labels defined") - }); } + + // Labels are inserted only in the new VM wizard + LabelsUtils.clearLabelsFilter(datatable, TEMPLATE_LABELS_COLUMN); + var context = $('.labels-dropdown', datatable.closest('#provisionVMInstantiateTemplatesRow')); + context.html(""); + LabelsUtils.insertLabelsMenu({ + 'context': context, + 'dataTable': datatable, + 'labelsColumn': TEMPLATE_LABELS_COLUMN, + 'labelsPath': 'VMTEMPLATE.TEMPLATE.LABELS', + 'placeholder': Locale.tr("No labels defined") + }); }, error: Notifier.onError }); diff --git a/src/sunstone/public/app/tabs/provision-tab/vms/create.hbs b/src/sunstone/public/app/tabs/provision-tab/vms/create.hbs index d3247c77c1..015948b341 100644 --- a/src/sunstone/public/app/tabs/provision-tab/vms/create.hbs +++ b/src/sunstone/public/app/tabs/provision-tab/vms/create.hbs @@ -75,10 +75,10 @@
- - +
diff --git a/src/sunstone/public/app/tabs/vms-tab/dialogs/spice/html.hbs b/src/sunstone/public/app/tabs/vms-tab/dialogs/spice/html.hbs index de778f6910..690508c05c 100644 --- a/src/sunstone/public/app/tabs/vms-tab/dialogs/spice/html.hbs +++ b/src/sunstone/public/app/tabs/vms-tab/dialogs/spice/html.hbs @@ -25,7 +25,7 @@ -
+
diff --git a/src/sunstone/public/app/tabs/vms-tab/dialogs/vnc/html.hbs b/src/sunstone/public/app/tabs/vms-tab/dialogs/vnc/html.hbs index 8497b44fe4..5a6c402494 100644 --- a/src/sunstone/public/app/tabs/vms-tab/dialogs/vnc/html.hbs +++ b/src/sunstone/public/app/tabs/vms-tab/dialogs/vnc/html.hbs @@ -32,7 +32,7 @@
-
+
{{tr "Canvas not supported."}}
diff --git a/src/sunstone/public/app/utils/labels/tree.js b/src/sunstone/public/app/utils/labels/tree.js index 5a2e93d2b9..a6d2c168d1 100644 --- a/src/sunstone/public/app/utils/labels/tree.js +++ b/src/sunstone/public/app/utils/labels/tree.js @@ -41,9 +41,9 @@ define(function(require) { var html; if (tree.htmlStr && tree.htmlStr != ""){ - html = ''; + html = '
    '+_innerHtml(tree, collapsed)+'
'; } else { - html = '