From c2c4ba5fc4c774e9524505f6f81593ef511f27c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 12 Jul 2021 23:01:27 +0200 Subject: [PATCH] Use last menu entry as tab label issue10505 review344331002 --- src/tab.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tab.js b/src/tab.js index 1c6d4e38b0..587bb53b28 100644 --- a/src/tab.js +++ b/src/tab.js @@ -317,7 +317,7 @@ }, set_name: function(name) { this.name = name; - this.name_el.text(Sao.common.ellipsize(name, 20)); + this.name_el.text(Sao.common.ellipsize(name.split(' / ').pop(), 20)); this.name_el.attr('title', name); }, get_url: function() { @@ -396,7 +396,7 @@ 'data-toggle': 'tab', 'href': '#' + tab.id }).on('show.bs.tab', function() { - Sao.set_url(tab.get_url(), tab.name); + Sao.set_url(tab.get_url(), tab.name.split(' / ').pop()); }) .append(jQuery('