Skip to content

Commit

Permalink
SAK-50057 Samigo remove unnecessary dropdown initialization (#12599)
Browse files Browse the repository at this point in the history
  • Loading branch information
ottenhoff authored May 14, 2024
1 parent 343d787 commit 6a19145
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ $Id: histogramScores.jsp 38982 2007-12-06 13:05:38Z gopal.ramasammycook@gmail.co
</h:panelGroup>
</div>
<div class="dropdown">
<button class="btn btn-default dropdown-toggle" name="Export Button" type="button" data-bs-toggle="dropdown">
<button class="btn btn-link dropdown-toggle" name="Export Button" type="button" data-bs-toggle="dropdown">
<h:outputText value="#{evaluationMessages.export}" />
<span class="caret"></span>
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,10 @@ $Id$
<script>
$(document).ready(function(){
// The current class is assigned using Javascript because we don't use facelets and the include directive does not support parameters.
var currentLink = $('#histogram\\:histogramScoresMenuLink');
let currentLink = $('#histogram\\:histogramScoresMenuLink');
currentLink.addClass('current');
// Remove the link of the current option
currentLink.html(currentLink.find('a').text());
// Init dropdown's
$('.dropdown-toggle').dropdown();
});
</script>
<!-- content... -->
Expand Down Expand Up @@ -102,7 +99,7 @@ $Id$
</h:selectOneMenu>
</h:panelGroup>
<div class="dropdown">
<button class="btn btn-default dropdown-toggle" name="Export Button" type="button" data-bs-toggle="dropdown">
<button class="btn btn-link dropdown-toggle" name="Export Button" type="button" data-bs-toggle="dropdown">
<h:outputText value="#{evaluationMessages.export}" />
<span class="caret"></span>
</button>
Expand Down

0 comments on commit 6a19145

Please sign in to comment.