Skip to content

Commit

Permalink
FIX #9344 Error in Browsers console after adding tabs to Quickcreate:…
Browse files Browse the repository at this point in the history
… selectTabOnError

Found that the name of the function selectTabOnError has been declared
twice at the theme SuiteP

If I change the definition of the function from let to var it does
not throws the error on the javascript console.
  • Loading branch information
lukio authored and mattlorimer committed Dec 22, 2022
1 parent 7f610b1 commit ba20ee5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion themes/SuiteP/include/DetailView/DetailView.tpl
Expand Up @@ -333,7 +333,7 @@
$('#content div.panel-content div.panel.tab-panel-' + tab).show();
};

let selectTabOnError = function(tab) {
var selectTabOnError = function(tab) {
selectTabDetailView(tab);
$('#content ul.nav.nav-tabs > li').removeClass('active');
$('#content ul.nav.nav-tabs > li a').css('color', '');
Expand Down

0 comments on commit ba20ee5

Please sign in to comment.