Fix help modal error

This commit is contained in:
Hillel Coren 2017-07-17 13:59:44 +03:00
parent 9b6346e4c0
commit 8910b3ae27

View File

@ -326,7 +326,8 @@
var tab = window.location.hash || (localStorage.getItem('client_tab') || ''); var tab = window.location.hash || (localStorage.getItem('client_tab') || '');
tab = tab.replace('#', ''); tab = tab.replace('#', '');
var selector = '.nav-tabs a[href="#' + tab + '"]'; var selector = '.nav-tabs a[href="#' + tab + '"]';
if (tab && tab != 'activity' && $(selector).length) {
if (tab && tab != 'activity' && $(selector).length && window['load_' + tab]) {
$(selector).tab('show'); $(selector).tab('show');
} else { } else {
window['load_activity'](); window['load_activity']();