#10324 added limit in modal title

This commit is contained in:
Daniel Cebrian 2023-02-27 11:17:17 +01:00
parent 08fb4e3396
commit 8a33756e3a
1 changed files with 4 additions and 0 deletions

View File

@ -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");