From 8910b3ae27097314b92b8b2c4a833678ca43bbea Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 17 Jul 2017 13:59:44 +0300 Subject: [PATCH] Fix help modal error --- resources/views/clients/show.blade.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/views/clients/show.blade.php b/resources/views/clients/show.blade.php index 16ed72bd25ea..29957aa5b68b 100644 --- a/resources/views/clients/show.blade.php +++ b/resources/views/clients/show.blade.php @@ -326,7 +326,8 @@ var tab = window.location.hash || (localStorage.getItem('client_tab') || ''); tab = tab.replace('#', ''); 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'); } else { window['load_activity']();