mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-10 17:03:56 +08:00
change truncate function
This commit is contained in:
parent
8540f88b7e
commit
c3051421b2
2 changed files with 1 additions and 8 deletions
|
@ -1,5 +0,0 @@
|
|||
$(document).ready(function() {
|
||||
$('.repository-nav-tab').each(function() {
|
||||
truncateLongString($(this), <%= Constants::NAME_TRUNCATION_LENGTH %>);
|
||||
});
|
||||
})
|
|
@ -12,7 +12,7 @@
|
|||
href="#custom_repo_<%= repo.id %>"
|
||||
data-toggle="tab"
|
||||
aria-controls="custom_repo_<%= repo.id %>"
|
||||
title="<%=repo.name%>"><%= repo.name %></a>
|
||||
title="<%=repo.name%>"><%= truncate(repo.name, length: Constants::NAME_TRUNCATION_LENGTH) %></a>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
@ -35,5 +35,3 @@
|
|||
<p><%=t 'repositories.index.no_teams.text' %></p>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<%= javascript_include_tag "repositories/index" %>
|
||||
|
|
Loading…
Reference in a new issue