mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixed issue where a tab on the client page can be blank on page load
This commit is contained in:
parent
5fbe59fa8b
commit
9436f5a51e
@ -327,9 +327,10 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
var tab = localStorage.getItem('client_tab');
|
||||
if (tab && tab != 'activity') {
|
||||
$('.nav-tabs a[href="#' + tab.replace('#', '') + '"]').tab('show');
|
||||
var tab = localStorage.getItem('client_tab') || '';
|
||||
var selector = '.nav-tabs a[href="#' + tab.replace('#', '') + '"]';
|
||||
if (tab && tab != 'activity' && $(selector).length) {
|
||||
$(selector).tab('show');
|
||||
} else {
|
||||
window['load_activity']();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user