mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-11 01:14:30 +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 %>"
|
href="#custom_repo_<%= repo.id %>"
|
||||||
data-toggle="tab"
|
data-toggle="tab"
|
||||||
aria-controls="custom_repo_<%= repo.id %>"
|
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>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -35,5 +35,3 @@
|
||||||
<p><%=t 'repositories.index.no_teams.text' %></p>
|
<p><%=t 'repositories.index.no_teams.text' %></p>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= javascript_include_tag "repositories/index" %>
|
|
||||||
|
|
Loading…
Reference in a new issue