Merge pull request #1162 from mlorb/ml-sci-2440-v2

fix toggle button on inventory page [SCI-2440]
This commit is contained in:
mlorb 2018-05-23 14:01:02 +02:00 committed by GitHub
commit 00657a78a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -452,9 +452,9 @@ var RepositoryDatatable = (function(global) {
global.onClickToggleAssignedRecords = function() {
$('.repository-assign-group > .btn').click(function() {
$('.btn-group > .btn').removeClass('active btn-primary');
$('.btn-group > .btn').removeClass('active btn-toggle');
$('.btn-group > .btn').addClass('btn-default');
$(this).addClass('active btn-primary');
$(this).addClass('active btn-toggle');
});
$('#assigned-repo-records').on('click', function() {

View file

@ -9,7 +9,7 @@
<h3 style="margin-top: 5px;"><%= @repository.name %></h3>
<div id="show-assigned-buttons" class="btn-group repository-assign-group" data-toggle="buttons">
<button type="button" class="active btn btn-primary" id="assigned-repo-records"><%= t("repositories.view_assigned_records") %></button>
<button type="button" class="active btn btn-toggle" id="assigned-repo-records"><%= t("repositories.view_assigned_records") %></button>
<button type="button" class="btn btn-default" id="all-repo-records"><%= t("repositories.view_all_records") %></button>
</div>