diff --git a/pandora_console/include/javascript/pandora_ui.js b/pandora_console/include/javascript/pandora_ui.js index 17cb359818..a96eafc32c 100644 --- a/pandora_console/include/javascript/pandora_ui.js +++ b/pandora_console/include/javascript/pandora_ui.js @@ -848,6 +848,10 @@ function favMenuAction(e) { text: "Confirm", click: function() { data.label = $("#text-label_fav_menu").val(); + if (data.label.length > 18) { + data.label = data.label.slice(0, 18) + "..."; + } + $(e).val(btoa(JSON.stringify(data))); favMenuAction(e); $(this).dialog("close");