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 clemente-raposo committed Jan 25, 2023
1 parent 3dc487a commit 553db5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion themes/SuiteP/include/DetailView/DetailView.tpl
Original file line number Diff line number Diff line change
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 553db5c

Please sign in to comment.