mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-02 13:12:13 +08:00
Fix default order of the columns in repositories [SCI-1445]
This commit is contained in:
parent
53a1dd14b7
commit
a6b80589f2
2 changed files with 1 additions and 2 deletions
|
@ -148,7 +148,6 @@ function dataTableInit() {
|
|||
data = myData;
|
||||
}
|
||||
$.ajax({
|
||||
async: false,
|
||||
url: '/repositories/' + repositoryId + '/state_save',
|
||||
data: {state: data},
|
||||
dataType: 'json',
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
<th id="row-name"><%= t("repositories.table.row_name") %></th>
|
||||
<th id="added-on"><%= t("repositories.table.added_on") %></th>
|
||||
<th id="added-by"><%= t("repositories.table.added_by") %></th>
|
||||
<% repository.repository_columns.each do |column| %>
|
||||
<% repository.repository_columns.order(:id).each do |column| %>
|
||||
<th class="repository-column" id="<%= column.id %>"
|
||||
<%= 'data-editable' if can_edit_column_in_repository(column) %>
|
||||
<%= 'data-deletable' if can_delete_column_in_repository(column) %>
|
||||
|
|
Loading…
Reference in a new issue