fix bug when input field has whitespace
This commit is contained in:
@@ -20,8 +20,8 @@
|
|||||||
// browser
|
// browser
|
||||||
function update_page_title (tab) {
|
function update_page_title (tab) {
|
||||||
var pgtitle = 'Netdisco';
|
var pgtitle = 'Netdisco';
|
||||||
if ($('#nd_device-name').text().length) {
|
if ($.trim($('#nd_device-name').text()).length) {
|
||||||
var pgtitle = $('#nd_device-name').text() +' - '+ $('#'+ tab + '_link').text();
|
pgtitle = $.trim($('#nd_device-name').text()) +' - '+ $('#'+ tab + '_link').text();
|
||||||
}
|
}
|
||||||
return pgtitle;
|
return pgtitle;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user