mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-30 04:02:48 +08:00
Merge pull request #1162 from mlorb/ml-sci-2440-v2
fix toggle button on inventory page [SCI-2440]
This commit is contained in:
commit
00657a78a5
2 changed files with 3 additions and 3 deletions
|
@ -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() {
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue